-
Notifications
You must be signed in to change notification settings - Fork 17
use correct config scope for release and custom cli profiles #404
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
base: main
Are you sure you want to change the base?
Conversation
src/build/mod.rs
Outdated
args.subcommand = Some(BuildSubcommands::Web(BuildWebArgs::default())); | ||
} | ||
} | ||
|
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.
Can we integrate this logic directly into the is_release()
functions of the args? Then e.g. also the wasm_opt detection works consistently with the config and we don't need to add other feature gated logic here
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.
Good call! What do you think now?
Fixes: https://discord.com/channels/691052431525675048/1278871953721262090/1367460269412057149
Before
bevy build --release bevy build --profile release # Become these cargo commands: cargo build --features native --profile release cargo build --features native,native_dev --profile release
Now
Build:
Run: