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 038c2cc commit 2e61abaCopy full SHA for 2e61aba
.changes/static-vcruntime-envvar.md
@@ -0,0 +1,6 @@
1
+---
2
+"cli.rs": patch
3
+"cli.js": patch
4
5
+
6
+Skip the static link of the `vcruntime140.dll` if the `STATIC_VCRUNTIME` environment variable is set to `false`.
tooling/cli/src/interface/rust.rs
@@ -155,7 +155,10 @@ impl Interface for Rust {
155
.features
156
.get_or_insert(Vec::new())
157
.push("custom-protocol".into());
158
- std::env::set_var("STATIC_VCRUNTIME", "true");
159
+ if !std::env::var("STATIC_VCRUNTIME").map_or(false, |v| v == "false") {
160
+ std::env::set_var("STATIC_VCRUNTIME", "true");
161
+ }
162
163
if options.target == Some("universal-apple-darwin".into()) {
164
std::fs::create_dir_all(&out_dir)
0 commit comments