Skip to content

Commit 38f69c5

Browse files
committed
fix building libstd with cfg(miri)
1 parent b92d360 commit 38f69c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/build.rs

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ fn main() {
3030
println!("cargo:rustc-link-lib=resolv");
3131
} else if target.contains("apple-darwin") {
3232
println!("cargo:rustc-link-lib=System");
33+
#[cfg(miri)]
34+
println!("cargo:rustc-link-lib=framework=Security");
3335

3436
// res_init and friends require -lresolv on macOS/iOS.
3537
// See #41582 and http://blog.achernya.com/2013/03/os-x-has-silly-libsystem.html

0 commit comments

Comments
 (0)