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}