We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2cb9046 + 5e029c4 commit 7bd77abCopy full SHA for 7bd77ab
lldb/tools/debugserver/source/MacOSX/CMakeLists.txt
@@ -10,7 +10,11 @@
10
# CFLAGS etc explicitly. Switching on LLVM_HOST_TRIPLE is also an option,
11
# but it breaks down when cross-compiling.
12
13
-string(REGEX MATCH "^[^-]*" LLDB_DEBUGSERVER_ARCH "${LLVM_DEFAULT_TARGET_TRIPLE}")
+if(LLVM_DEFAULT_TARGET_TRIPLE)
14
+ string(REGEX MATCH "^[^-]*" LLDB_DEBUGSERVER_ARCH ${LLVM_DEFAULT_TARGET_TRIPLE})
15
+else()
16
+ set(LLDB_DEBUGSERVER_ARCH ${CMAKE_OSX_ARCHITECTURES})
17
+endif()
18
19
if("${LLDB_DEBUGSERVER_ARCH}" MATCHES ".*arm.*")
20
list(APPEND SOURCES arm/DNBArchImpl.cpp arm64/DNBArchImplARM64.cpp)
0 commit comments