eecd5d0a broke non-clang host builds.
Some crt code is not always built with the just-built clang.
0da172b checked if the compiler is clang, not assert that the compiler
is clang.
"-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",
- ]
+ if (is_clang) {
+ cflags += [
+ "-Werror=thread-safety",
+ "-Werror=thread-safety-reference",
+ "-Werror=thread-safety-beta",
+ ]
+ }
}
config("warn_covered_switch_default") {