Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 78b6420

Browse files
committedMay 11, 2019
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)
Please sign in to comment.