Fix warning whe building profiler_builtins crate
This commit is contained in:
parent
ed3950ba5a
commit
1ea121c74f
1 changed files with 1 additions and 1 deletions
|
@ -48,10 +48,10 @@ fn main() {
|
||||||
// Turn off various features of gcc and such, mostly copying
|
// Turn off various features of gcc and such, mostly copying
|
||||||
// compiler-rt's build system already
|
// compiler-rt's build system already
|
||||||
cfg.flag("-fno-builtin");
|
cfg.flag("-fno-builtin");
|
||||||
cfg.flag("-fvisibility=hidden");
|
|
||||||
cfg.flag("-fomit-frame-pointer");
|
cfg.flag("-fomit-frame-pointer");
|
||||||
cfg.define("VISIBILITY_HIDDEN", None);
|
cfg.define("VISIBILITY_HIDDEN", None);
|
||||||
if !target.contains("windows") {
|
if !target.contains("windows") {
|
||||||
|
cfg.flag("-fvisibility=hidden");
|
||||||
cfg.define("COMPILER_RT_HAS_UNAME", Some("1"));
|
cfg.define("COMPILER_RT_HAS_UNAME", Some("1"));
|
||||||
} else {
|
} else {
|
||||||
profile_sources.push("WindowsMMap.c");
|
profile_sources.push("WindowsMMap.c");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue