-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7cb75c2
commit 80aa88e
Showing
2 changed files
with
49 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
From 83b2827d0c833b8676677a0053e5c6ea55be668b Mon Sep 17 00:00:00 2001 | ||
From e0a1ccb6e00c27ce541f3883d3484827928d24e9 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= <[email protected]> | ||
Date: Thu, 2 Nov 2023 09:45:19 -0400 | ||
Date: Wed, 8 Nov 2023 11:47:42 -0500 | ||
Subject: [PATCH] [PATCH] force Windows MSVC dynamic runtime linking | ||
|
||
--- | ||
src/bootstrap/bin/rustc.rs | 2 +- | ||
src/bootstrap/bootstrap.py | 2 +- | ||
src/bootstrap/builder.rs | 2 +- | ||
src/bootstrap/cc_detect.rs | 4 ++-- | ||
4 files changed, 5 insertions(+), 5 deletions(-) | ||
src/bootstrap/cc_detect.rs | 6 +++--- | ||
4 files changed, 6 insertions(+), 6 deletions(-) | ||
|
||
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs | ||
index 10718aeb89f..6bff20c84c1 100644 | ||
|
@@ -50,14 +50,16 @@ index b3666192853..198b1e0a46d 100644 | |
rustflags.arg("-Ctarget-feature=-crt-static"); | ||
} | ||
diff --git a/src/bootstrap/cc_detect.rs b/src/bootstrap/cc_detect.rs | ||
index 2496c2a9db5..6f0985310ae 100644 | ||
index 2496c2a9db5..b745a05b78e 100644 | ||
--- a/src/bootstrap/cc_detect.rs | ||
+++ b/src/bootstrap/cc_detect.rs | ||
@@ -75,11 +75,11 @@ fn new_cc_build(build: &Build, target: TargetSelection) -> cc::Build { | ||
@@ -74,12 +74,12 @@ fn new_cc_build(build: &Build, target: TargetSelection) -> cc::Build { | ||
.target(&target.triple) | ||
.host(&build.build.triple); | ||
match build.crt_static(target) { | ||
Some(a) => { | ||
- Some(a) => { | ||
- cfg.static_crt(a); | ||
+ Some(_a) => { | ||
+ cfg.static_crt(false); | ||
} | ||
None => { | ||
|