From 02249e813ebb93d41f1a745a2836212ec8f68c8f Mon Sep 17 00:00:00 2001 From: Robin Kruppe Date: Mon, 28 Nov 2016 12:23:57 +0100 Subject: [PATCH] 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) --- src/libcompiler_builtins/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcompiler_builtins/build.rs b/src/libcompiler_builtins/build.rs index acbd39bb1630c..f61e2281a5c30 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();