Skip to content

Commit

Permalink
Define VISIBILITY_HIDDEN when compiling compiler-rt
Browse files Browse the repository at this point in the history
This is cherry-picked from #37817 which seems to be stalled and currently needs to be rebased anyway.

r? @alexcrichton (who authored this change)
  • Loading branch information
Robin Kruppe committed Nov 28, 2016
1 parent 29abe6f commit 02249e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcompiler_builtins/build.rs
Expand Up @@ -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();
Expand Down

0 comments on commit 02249e8

Please sign in to comment.