1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

gn build: Don't assume valgrind.h exists on Linux

It didn't on my machine, so defaulting it to off seems better.

Differential revision: https://reviews.llvm.org/D56727

llvm-svn: 351202
This commit is contained in:
Hans Wennborg 2019-01-15 16:51:45 +00:00
parent b127835245
commit 28ed037d55

View File

@ -92,6 +92,7 @@ write_cmake_config("config") {
"HAVE_STRERROR=1",
"HAVE_SYS_STAT_H=1",
"HAVE_SYS_TYPES_H=1",
"HAVE_VALGRIND_VALGRIND_H=",
"HAVE__ALLOCA=",
"HAVE___ALLOCA=",
"HAVE___ASHLDI3=",
@ -152,12 +153,6 @@ write_cmake_config("config") {
]
}
if (current_os == "linux") {
values += [ "HAVE_VALGRIND_VALGRIND_H=1" ]
} else {
values += [ "HAVE_VALGRIND_VALGRIND_H=" ]
}
if (current_os == "mac") {
values += [
"HAVE_CRASHREPORTER_INFO=1",