Author: Jonas Devlieghere Date: 2021-10-19T09:55:53-07:00 New Revision: 1529738b6619cdf817feb31771b57a893accf63b
URL: https://github.com/llvm/llvm-project/commit/1529738b6619cdf817feb31771b57a893accf63b DIFF: https://github.com/llvm/llvm-project/commit/1529738b6619cdf817feb31771b57a893accf63b.diff LOG: [debugserver] Fix BUILDING_FOR_ARM64_OSX Check for TARGET_CPU_ARM64 (ARM instructions for 64-bit mode) rather than TARGET_CPU_ARM (instructions for 32-bit mode). Added: Modified: lldb/tools/debugserver/source/CMakeLists.txt Removed: ################################################################################ diff --git a/lldb/tools/debugserver/source/CMakeLists.txt b/lldb/tools/debugserver/source/CMakeLists.txt index 588df7f65355f..cf1eea31cdb8d 100644 --- a/lldb/tools/debugserver/source/CMakeLists.txt +++ b/lldb/tools/debugserver/source/CMakeLists.txt @@ -88,21 +88,21 @@ include(CheckCSourceCompiles) check_c_source_compiles( " #include <TargetConditionals.h> - #if TARGET_CPU_ARM + #if TARGET_CPU_ARM64 #if TARGET_OS_OSX #warning Building for macOS #else #error Not building for macOS #endif #else - #error Not building for ARM + #error Not building for ARM64 #endif int main() { return 0; } " - BUILDING_FOR_ARM_OSX + BUILDING_FOR_ARM64_OSX ) -if (BUILDING_FOR_ARM_OSX) +if (BUILDING_FOR_ARM64_OSX) set(CMAKE_OSX_ARCHITECTURES "arm64;arm64e") endif () _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits