Skip to content

Commit 02249e8

Browse files
author
Robin Kruppe
committed
Define VISIBILITY_HIDDEN when compiling compiler-rt
This is cherry-picked from rust-lang#37817 which seems to be stalled and currently needs to be rebased anyway. r? @alexcrichton (who authored this change)
1 parent 29abe6f commit 02249e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcompiler_builtins/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ fn main() {
9494
cfg.flag("-fvisibility=hidden");
9595
cfg.flag("-fomit-frame-pointer");
9696
cfg.flag("-ffreestanding");
97+
cfg.define("VISIBILITY_HIDDEN", None);
9798
}
9899

99100
let mut sources = Sources::new();

0 commit comments

Comments
 (0)