Define VISIBILITY_HIDDEN when compiling compiler-rt

This is cherry-picked from #37817 which seems to be stalled and currently needs to be rebased anyway.

r? @alexcrichton (who authored this change)
This commit is contained in:
Robin Kruppe 2016-11-28 12:23:57 +01:00
parent 29abe6f9e8
commit 02249e813e

View File

@ -94,6 +94,7 @@ fn main() {
cfg.flag("-fvisibility=hidden");
cfg.flag("-fomit-frame-pointer");
cfg.flag("-ffreestanding");
cfg.define("VISIBILITY_HIDDEN", None);
}
let mut sources = Sources::new();