-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Ensure the compiler --release flag if we build with --production #372
base: master
Are you sure you want to change the base?
Conversation
target.main, | ||
] | ||
args = ["build", "-o", File.join(Shards.bin_path, target.name)] | ||
args << "--release" if Shards.production? |
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.
args << "--release" if Shards.production? | |
args << "--release" if Shards.production? && !options.includes?("--release") |
I'm not sure about this. |
@straight-shoota It that case they can just do I just know I fell victim to this as well, thinking it was similar to |
Yes, I think the confusion/wrong expectations here are from its name. Adding |
I think we should have just one flag, either It's the same reason why we don't have I don't understand why you'd want to deploy a non-optimized build in staging. Then QA finds that stuff is slow for no reason, maybe report it... staging and production should be as similar as possible. |
I agree with @straight-shoota and @Blacksmoke16 . I would also like to add that the name It think, it would be clearer to do this way: |
The documentation was misleading. So I thought it would be proper to automatically add the compiler release flag when building with the shards --production flag.