From 381e7e32cd2718093a839973143660f4ab9e2aee Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Fri, 3 Jan 2025 19:12:28 -0500 Subject: [PATCH] Update sunshine.rb --- packaging/sunshine.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packaging/sunshine.rb b/packaging/sunshine.rb index 72d0e9852f9..80b0f204b0a 100644 --- a/packaging/sunshine.rb +++ b/packaging/sunshine.rb @@ -63,6 +63,13 @@ def install ENV["BUILD_VERSION"] = "@BUILD_VERSION@" ENV["COMMIT"] = "@GITHUB_COMMIT@" + # Remove Homebrew optimization flags + ENV.delete "O0" + ENV.delete "O1" + ENV.delete "O2" + ENV.delete "O3" + ENV.remove "CXXFLAGS", "-DNDEBUG" + args = %W[ -DBUILD_WERROR=ON -DCMAKE_INSTALL_PREFIX=#{prefix}