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:
parent
afc8458e8c
commit
69627dbd2f
@ -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" ]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user