Skip to content

Commit 78b6420

Browse files
committed
explain why we need framework=Security with cfg(miri)
1 parent 38f69c5 commit 78b6420

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
@@ -31,6 +31,8 @@ fn main() {
3131
} else if target.contains("apple-darwin") {
3232
println!("cargo:rustc-link-lib=System");
3333
#[cfg(miri)]
34+
// With Miri, we use SecRandomCopyBytes got randomness, so we need to link
35+
// with `framework=Security`.
3436
println!("cargo:rustc-link-lib=framework=Security");
3537

3638
// res_init and friends require -lresolv on macOS/iOS.

0 commit comments

Comments
 (0)