We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f9235e3 + 7bd77ab commit 7827ba6Copy full SHA for 7827ba6
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