summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2019-10-29 08:20:58 -0700
committerSaleem Abdulrasool <compnerd@compnerd.org>2019-10-29 08:20:58 -0700
commit55eec2ba96bd9c19ccb5d4d13cb8c88d4abcebc6 (patch)
treee3c8b3c4669630677057cdc1d8d36dbaabf9a39d /lldb
parenta22282be54b309ce7ab0e6bf8595893384971646 (diff)
downloadbcm5719-llvm-55eec2ba96bd9c19ccb5d4d13cb8c88d4abcebc6.tar.gz
bcm5719-llvm-55eec2ba96bd9c19ccb5d4d13cb8c88d4abcebc6.zip
build: workaround stale caches (NFC)
`LLVM_DEFAULT_TARGET_TRIPLE` is a cached variable, which means that it may actually be unset. Furthermore, in standalone builds, the variable may be fully undefined. Apply the regular expression over the empty string in such a case. This should improve the state of the green dragon bot.
Diffstat (limited to 'lldb')
-rw-r--r--lldb/tools/debugserver/source/MacOSX/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/CMakeLists.txt b/lldb/tools/debugserver/source/MacOSX/CMakeLists.txt
index 6d8e1ee449e..59812b27dff 100644
--- a/lldb/tools/debugserver/source/MacOSX/CMakeLists.txt
+++ b/lldb/tools/debugserver/source/MacOSX/CMakeLists.txt
@@ -10,7 +10,7 @@
# CFLAGS etc explicitly. Switching on LLVM_HOST_TRIPLE is also an option,
# but it breaks down when cross-compiling.
-string(REGEX MATCH "^[^-]*" LLDB_DEBUGSERVER_ARCH ${LLVM_DEFAULT_TARGET_TRIPLE})
+string(REGEX MATCH "^[^-]*" LLDB_DEBUGSERVER_ARCH "${LLVM_DEFAULT_TARGET_TRIPLE}")
if("${LLDB_DEBUGSERVER_ARCH}" MATCHES ".*arm.*")
list(APPEND SOURCES arm/DNBArchImpl.cpp arm64/DNBArchImplARM64.cpp)
OpenPOWER on IntegriCloud