Skip to content

Commit 0f2a7f2

Browse files
committed
[debugserver] Put building for arm64e behind a CMake flag
1 parent 3eda877 commit 0f2a7f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/tools/debugserver/source/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ if (CXX_SUPPORTS_NO_EXTENDED_OFFSETOF)
8282
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-extended-offsetof")
8383
endif ()
8484

85-
# When compiling for arm, build debugserver 2 way fat with an arm64 and arm64e
86-
# slice. You can only debug arm64e processes using an arm64e debugserver.
8785
include(CheckCSourceCompiles)
8886
check_c_source_compiles(
8987
"
@@ -102,7 +100,9 @@ check_c_source_compiles(
102100
BUILDING_FOR_ARM64_OSX
103101
)
104102

105-
if (BUILDING_FOR_ARM64_OSX)
103+
# You can only debug arm64e processes using an arm64e debugserver.
104+
option(LLDB_ENABLE_ARM64E_DEBUGSERVER "Build debugserver for arm64 and arm64e" OFF)
105+
if (BUILDING_FOR_ARM64_OSX AND LLDB_ENABLE_ARM64E_DEBUGSERVER)
106106
set(CMAKE_OSX_ARCHITECTURES "arm64;arm64e")
107107
endif ()
108108

0 commit comments

Comments
 (0)