diff options
| author | Robin Kruppe <robin.kruppe@gmail.com> | 2016-11-28 12:23:57 +0100 |
|---|---|---|
| committer | Robin Kruppe <robin.kruppe@gmail.com> | 2016-11-28 12:23:57 +0100 |
| commit | 02249e813ebb93d41f1a745a2836212ec8f68c8f (patch) | |
| tree | aa3962a7f9c96d656eb23f8430801036185a5897 /src | |
| parent | 29abe6f9e86829d55ba180a5957f203a64a96b65 (diff) | |
| download | rust-02249e813ebb93d41f1a745a2836212ec8f68c8f.tar.gz rust-02249e813ebb93d41f1a745a2836212ec8f68c8f.zip | |
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)
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcompiler_builtins/build.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcompiler_builtins/build.rs b/src/libcompiler_builtins/build.rs index acbd39bb163..f61e2281a5c 100644 --- a/src/libcompiler_builtins/build.rs +++ b/src/libcompiler_builtins/build.rs @@ -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(); |
