From 913b63998eb8a1c0005149c07d4ed7cfddf92d10 Mon Sep 17 00:00:00 2001 From: Rich Kadel Date: Tue, 1 Sep 2020 16:18:50 -0700 Subject: [PATCH] Suppress new profiler_builtins warning since LLVM 11 --- library/profiler_builtins/build.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/profiler_builtins/build.rs b/library/profiler_builtins/build.rs index 2a5d5853fec64..831f57e9be1cb 100644 --- a/library/profiler_builtins/build.rs +++ b/library/profiler_builtins/build.rs @@ -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"));