1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[gn build] Allow use_asan=true on macOS

Seems to work.

(I only tried macOS, not iOS, but need to allow both because
the iOS toolchain used to build compiler-rt asserts otherwise.)
This commit is contained in:
Nico Weber 2021-07-22 21:38:00 -04:00
parent afc8458e8c
commit 69627dbd2f

View File

@ -314,8 +314,9 @@ config("compiler_defaults") {
} }
if (use_asan) { if (use_asan) {
assert(is_clang && current_os == "linux", assert(is_clang && (current_os == "ios" || current_os == "linux" ||
"asan only supported on Linux/Clang") current_os == "mac"),
"asan only supported on iOS/Clang, Linux/Clang, and macOS/Clang")
cflags += [ "-fsanitize=address" ] cflags += [ "-fsanitize=address" ]
ldflags += [ "-fsanitize=address" ] ldflags += [ "-fsanitize=address" ]
} }