Skip to content

add build script parameter to set ZIG_OPTIMIZE_MODE #168

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nektro
Copy link

@nektro nektro commented Apr 11, 2024

Comment on lines -198 to 200
-Doptimize=ReleaseFast \
-Doptimize="$ZIG_OPTIMIZE_MODE" \
-Dstrip \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One potential issue I see with this PR is this. I would assume that the motivation for distributing e.g. a ReleaseSafe build of the compiler is that we can get useful stack traces when something goes wrong on the user's machine. It seems like -Dstrip undermines that.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but andrew has expressed not wanting to add branching to this script, so that leaves the open question of if the -Dstrip should be removed unconditionally and -Dopotimize changed to ReleaseSafe always and the option removed in the wake of the acceptance of 15194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants