浏览代码

Define VISIBILITY_HIDDEN when compiling objects

Apparently compiler-rt passed this and we just forgot to. Fixes visibility of
some symbols on 32-bit Linux.
Alex Crichton 8 年之前
父节点
当前提交
24d49071e5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      build.rs

+ 1 - 0
build.rs

@@ -78,6 +78,7 @@ fn main() {
             cfg.flag("-fvisibility=hidden");
             cfg.flag("-fomit-frame-pointer");
             cfg.flag("-ffreestanding");
+            cfg.define("VISIBILITY_HIDDEN", None);
         }
 
         // NOTE Most of the ARM intrinsics are written in assembly. Tell gcc which arch we are going to