Skip to content

zig build: change "-Drelease" to "-Doptimize" #15192

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

Merged
merged 2 commits into from
Apr 19, 2023

Conversation

motiejus
Copy link
Contributor

@motiejus motiejus commented Apr 6, 2023

I find myself quite often creating ReleaseSafe builds and putting them to production for certain experiments:

This is a breaking change for scripts that make Zig releases -- I will submit another PR to zig-bootstrap and release-cutter if/after this is merged.

@motiejus motiejus force-pushed the build-release branch 3 times, most recently from b383f2d to e2888bb Compare April 7, 2023 12:10
motiejus added a commit to motiejus/zig that referenced this pull request Apr 7, 2023
Following @Luukdegram's comment[1]:

> The default should remain Debug when unspecified. In ReleaseSmall the
> user would lose all DWARF support when testing their WebAssembly code.
> Building a release version should be opt-in, not the default.

[1]: ziglang#15192 (comment)
@motiejus motiejus force-pushed the build-release branch 2 times, most recently from 1a4bee2 to a23dd8f Compare April 11, 2023 15:51
motiejus added a commit to motiejus/zig that referenced this pull request Apr 11, 2023
Following @Luukdegram's comment[1]:

> The default should remain Debug when unspecified. In ReleaseSmall the
> user would lose all DWARF support when testing their WebAssembly code.
> Building a release version should be opt-in, not the default.

[1]: ziglang#15192 (comment)
motiejus added a commit to motiejus/zig that referenced this pull request Apr 11, 2023
Following @Luukdegram's comment[1]:

> The default should remain Debug when unspecified. In ReleaseSmall the
> user would lose all DWARF support when testing their WebAssembly code.
> Building a release version should be opt-in, not the default.

[1]: ziglang#15192 (comment)
I find myself quite often creating ReleaseSafe builds and putting them
to production for certain experiments:
- Debug info are for stack traces. An ongoing example where those would
  help is ziglang#14815.
- Safety checks would have saved a couple of mine and @kubkon's hours in
  ziglang#15098.

This is a breaking change for scripts that make Zig releases -- I will
submit another PR to zig-bootstrap and release-cutter after this is
merged.
Following @Luukdegram's comment[1]:

> The default should remain Debug when unspecified. In ReleaseSmall the
> user would lose all DWARF support when testing their WebAssembly code.
> Building a release version should be opt-in, not the default.

[1]: ziglang#15192 (comment)
@andrewrk andrewrk merged commit 0e394cf into ziglang:master Apr 19, 2023
@motiejus motiejus deleted the build-release branch April 19, 2023 13:42
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.

3 participants