Skip to content

Commit

Permalink
Suppress new profiler_builtins warning since LLVM 11
Browse files Browse the repository at this point in the history
  • Loading branch information
richkadel committed Sep 1, 2020
1 parent 445f34b commit 913b639
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/profiler_builtins/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ fn main() {
cfg.flag("-fno-builtin");
cfg.flag("-fvisibility=hidden");
cfg.flag("-fomit-frame-pointer");

// Suppresses: `warning: .../GCDAProfiling.c... destructor priorities from 0 to 100 are
// reserved for the implementation`
cfg.flag_if_supported("-Wno-prio-ctor-dtor");

cfg.define("VISIBILITY_HIDDEN", None);
if !target.contains("windows") {
cfg.define("COMPILER_RT_HAS_UNAME", Some("1"));
Expand Down

0 comments on commit 913b639

Please sign in to comment.