[llvm] eecd5d0 - [gn build] port 0da172b1766e more
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 12 05:50:25 PDT 2021
Author: Nico Weber
Date: 2021-07-12T08:50:18-04:00
New Revision: eecd5d0aa8c3114235ffe9730009470d63910b24
URL: https://github.com/llvm/llvm-project/commit/eecd5d0aa8c3114235ffe9730009470d63910b24
DIFF: https://github.com/llvm/llvm-project/commit/eecd5d0aa8c3114235ffe9730009470d63910b24.diff
LOG: [gn build] port 0da172b1766e more
Added:
Modified:
llvm/utils/gn/build/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/build/BUILD.gn b/llvm/utils/gn/build/BUILD.gn
index a7531fa2b6635..7998cde3712d5 100644
--- a/llvm/utils/gn/build/BUILD.gn
+++ b/llvm/utils/gn/build/BUILD.gn
@@ -392,6 +392,12 @@ config("crt_code") {
"-gline-tables-only",
"-fvisibility=hidden",
]
+ assert(is_clang, "CRT code is always built with just-built clang")
+ cflags += [
+ "-Werror=thread-safety",
+ "-Werror=thread-safety-reference",
+ "-Werror=thread-safety-beta",
+ ]
}
config("warn_covered_switch_default") {
More information about the llvm-commits
mailing list