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.
1 parent 23b05b4 commit 963b8a6Copy full SHA for 963b8a6
guests/bundle/build.rs
@@ -82,9 +82,18 @@ impl CommandExt for Command {
82
let Ok(k) = k.into_string() else {
83
continue;
84
};
85
- if k.starts_with("CARGO") || k.starts_with("RUST") {
+
86
+ // Generally we do NOT want to forward rustc and cargo arguments set for this build
87
+ // script. However some of them are used in CI to speed up compilation and reduce disk
88
+ // space usage. So we hard-code these here.
89
+ if (k.starts_with("CARGO") || k.starts_with("RUST"))
90
+ && !["CARGO_PROFILE_DEV_DEBUG", "CARGO_INCREMENTAL"]
91
+ .into_iter()
92
+ .any(|s| s == k)
93
+ {
94
95
}
96
97
cmd = cmd.env(k, v);
98
99
0 commit comments