-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zls: use ReleaseSafe
instead of ReleaseFast
#159734
Conversation
- fast-release - slow compilation, fully optimized runtime performance, safety checks off - safe-release - slow compilation, fully optimized runtime performance, safety checks on Signed-off-by: Rui Chen <[email protected]>
@@ -29,7 +29,7 @@ def install | |||
else Hardware.oldest_cpu | |||
end | |||
|
|||
args = %W[--prefix #{prefix} -Doptimize=ReleaseFast] | |||
args = %W[--prefix #{prefix} -Doptimize=ReleaseSafe] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems nicer to keep ReleaseFast
unless users report problems with it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
relates to ziglang/zig#288
That's from 7 years ago with no relevance to Homebrew though. What are we doing this for?
Oh, that is just saying the fact this option has been existing for quite some time. this might be a better diagram from ziglang/zig#978 |
also upstream is using releasesafe for their release builds though. |
Is it also the default? |
right now it is not the default in the build.zig |
I think one of the reasons is that |
The default is always debug, IIUC. |
gonna close it for now, we can revisit it later. |
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?relates to ziglang/zig#288