Skip to content

Commit 55eec2b

Browse files
committed
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.
1 parent a22282b commit 55eec2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/tools/debugserver/source/MacOSX/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# CFLAGS etc explicitly. Switching on LLVM_HOST_TRIPLE is also an option,
1111
# but it breaks down when cross-compiling.
1212

13-
string(REGEX MATCH "^[^-]*" LLDB_DEBUGSERVER_ARCH ${LLVM_DEFAULT_TARGET_TRIPLE})
13+
string(REGEX MATCH "^[^-]*" LLDB_DEBUGSERVER_ARCH "${LLVM_DEFAULT_TARGET_TRIPLE}")
1414

1515
if("${LLDB_DEBUGSERVER_ARCH}" MATCHES ".*arm.*")
1616
list(APPEND SOURCES arm/DNBArchImpl.cpp arm64/DNBArchImplARM64.cpp)

0 commit comments

Comments
 (0)