Skip to content

Commit

Permalink
try fix 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Taowyoo committed Sep 8, 2023
1 parent 4e45ef9 commit f53f25c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[target.x86_64-pc-windows-msvc]
[build]
rustflags = ["-C", "link-arg=/NODEFAULTLIB"]
rustflags = ["-C", "link-arg=/NODEFAULTLIB:ucrt.lib"]
2 changes: 0 additions & 2 deletions mbedtls-platform-support/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ fn main() {
b.flag_if_supported("/clr:nostdimport");
if b.get_compiler().is_like_msvc() {
b.ar_flag("/NODEFAULTLIB:ucrt.lib");
b.ar_flag("/NODEFAULTLIB:libucrt.lib");
b.ar_flag("/NODEFAULTLIB");
}
// equivalents for turning off stack protection in msvc
b.flag_if_supported("/GS-");
Expand Down
2 changes: 0 additions & 2 deletions mbedtls-sys/build/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ impl BuildConfig {
cc.flag_if_supported("/clr:nostdlib");
if features::env_have_target_cfg("env", "msvc") {
cc.ar_flag("/NODEFAULTLIB:ucrt.lib");
cc.ar_flag("/NODEFAULTLIB:libucrt.lib");
cc.ar_flag("/NODEFAULTLIB");
}
}
cc
Expand Down
2 changes: 0 additions & 2 deletions mbedtls/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ fn main() {
b.flag_if_supported("/clr:nostdimport");
if b.get_compiler().is_like_msvc() {
b.ar_flag("/NODEFAULTLIB:ucrt.lib");
b.ar_flag("/NODEFAULTLIB:libucrt.lib");
b.ar_flag("/NODEFAULTLIB");
}
// equivalents for turning off stack protection in msvc
b.flag_if_supported("/GS-");
Expand Down

0 comments on commit f53f25c

Please sign in to comment.