Skip to content

Commit

Permalink
[debugserver] Put building for arm64e behind a CMake flag
Browse files Browse the repository at this point in the history
  • Loading branch information
JDevlieghere committed Nov 9, 2021
1 parent 3eda877 commit 0f2a7f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lldb/tools/debugserver/source/CMakeLists.txt
Expand Up @@ -82,8 +82,6 @@ if (CXX_SUPPORTS_NO_EXTENDED_OFFSETOF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-extended-offsetof")
endif ()

# When compiling for arm, build debugserver 2 way fat with an arm64 and arm64e
# slice. You can only debug arm64e processes using an arm64e debugserver.
include(CheckCSourceCompiles)
check_c_source_compiles(
"
Expand All @@ -102,7 +100,9 @@ check_c_source_compiles(
BUILDING_FOR_ARM64_OSX
)

if (BUILDING_FOR_ARM64_OSX)
# You can only debug arm64e processes using an arm64e debugserver.
option(LLDB_ENABLE_ARM64E_DEBUGSERVER "Build debugserver for arm64 and arm64e" OFF)
if (BUILDING_FOR_ARM64_OSX AND LLDB_ENABLE_ARM64E_DEBUGSERVER)
set(CMAKE_OSX_ARCHITECTURES "arm64;arm64e")
endif ()

Expand Down

0 comments on commit 0f2a7f2

Please sign in to comment.