Skip to content

Commit 913b639

Browse files
committed
Suppress new profiler_builtins warning since LLVM 11
1 parent 445f34b commit 913b639

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/profiler_builtins/build.rs

+5
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ fn main() {
5050
cfg.flag("-fno-builtin");
5151
cfg.flag("-fvisibility=hidden");
5252
cfg.flag("-fomit-frame-pointer");
53+
54+
// Suppresses: `warning: .../GCDAProfiling.c... destructor priorities from 0 to 100 are
55+
// reserved for the implementation`
56+
cfg.flag_if_supported("-Wno-prio-ctor-dtor");
57+
5358
cfg.define("VISIBILITY_HIDDEN", None);
5459
if !target.contains("windows") {
5560
cfg.define("COMPILER_RT_HAS_UNAME", Some("1"));

0 commit comments

Comments
 (0)