We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RUSTFLAGS
1 parent a72eb13 commit 36b9429Copy full SHA for 36b9429
crates/cli/src/commands/build.rs
@@ -1,4 +1,5 @@
1
use std::{
2
+ env::var,
3
fs::{create_dir_all, read, write},
4
path::PathBuf,
5
sync::Arc,
@@ -128,7 +129,8 @@ pub(crate) fn build(build_args: &BuildArgs) -> Result<Option<PathBuf>> {
128
129
};
130
let mut guest_options = GuestOptions::default()
131
.with_features(build_args.features.clone())
- .with_profile(build_args.profile.clone());
132
+ .with_profile(build_args.profile.clone())
133
+ .with_rustc_flags(var("RUSTFLAGS").unwrap_or_default().split_whitespace());
134
guest_options.target_dir = build_args.target_dir.clone();
135
if build_args.offline {
136
guest_options.options = vec!["--offline".to_string()];
0 commit comments