Skip to content

Commit 1ea121c

Browse files
committed
Fix warning whe building profiler_builtins crate
1 parent ed3950b commit 1ea121c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/profiler_builtins/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ fn main() {
4848
// Turn off various features of gcc and such, mostly copying
4949
// compiler-rt's build system already
5050
cfg.flag("-fno-builtin");
51-
cfg.flag("-fvisibility=hidden");
5251
cfg.flag("-fomit-frame-pointer");
5352
cfg.define("VISIBILITY_HIDDEN", None);
5453
if !target.contains("windows") {
54+
cfg.flag("-fvisibility=hidden");
5555
cfg.define("COMPILER_RT_HAS_UNAME", Some("1"));
5656
} else {
5757
profile_sources.push("WindowsMMap.c");

0 commit comments

Comments
 (0)