Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

chenrui333
Copy link
Member

@chenrui333 chenrui333 commented Jan 12, 2024

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

  • fast-release - slow compilation, fully optimized runtime performance, safety checks off
  • safe-release - slow compilation, fully optimized runtime performance, safety checks on

relates to ziglang/zig#288

- 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]>
@github-actions github-actions bot added the zig Zig use is a significant feature of the PR or issue label Jan 12, 2024
@@ -29,7 +29,7 @@ def install
else Hardware.oldest_cpu
end

args = %W[--prefix #{prefix} -Doptimize=ReleaseFast]
args = %W[--prefix #{prefix} -Doptimize=ReleaseSafe]
Copy link
Member

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.

Copy link
Member

@SMillerDev SMillerDev left a 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?

@chenrui333
Copy link
Member Author

chenrui333 commented Jan 12, 2024

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

image

@SMillerDev
Copy link
Member

Is it also the default?

@chenrui333
Copy link
Member Author

Is it also the default?

right now it is not the default in the build.zig

@chenrui333
Copy link
Member Author

I think one of the reasons is that std.builtin.Mode is not just for release build but also debug build.

@carlocab
Copy link
Member

Is it also the default?

The default is always debug, IIUC.

@chenrui333
Copy link
Member Author

gonna close it for now, we can revisit it later.

@chenrui333 chenrui333 closed this Jan 23, 2024
@chenrui333 chenrui333 deleted the zls-build branch February 21, 2024 19:39
@github-actions github-actions bot added the outdated PR was locked due to age label Mar 22, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age zig Zig use is a significant feature of the PR or issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants