Explorar o código

Merge pull request #119 from alexcrichton/hidden

Define VISIBILITY_HIDDEN when compiling objects
Alex Crichton %!s(int64=8) %!d(string=hai) anos
pai
achega
fbf5195afb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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