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();