Skip to content

Commit 08a97a0

Browse files
committed
[CMake] Support building Fuchsia toolchain on Darwin
This is already supported on Linux but on Darwin it requires some extra flags. Differential Revision: https://reviews.llvm.org/D30958 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300257 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent add1a7f commit 08a97a0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

cmake/caches/Fuchsia-stage2.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ if(NOT APPLE)
1919
set(CLANG_DEFAULT_LINKER lld CACHE STRING "")
2020
endif()
2121

22+
if(APPLE)
23+
set(LLDB_CODESIGN_IDENTITY "" CACHE STRING "")
24+
endif()
25+
2226
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "")
2327
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -gline-tables-only -DNDEBUG" CACHE STRING "")
2428
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -gline-tables-only -DNDEBUG" CACHE STRING "")

cmake/caches/Fuchsia.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ if(NOT APPLE)
1919
set(BOOTSTRAP_LLVM_ENABLE_LLD ON CACHE BOOL "")
2020
endif()
2121

22+
if(APPLE)
23+
set(COMPILER_RT_ENABLE_IOS OFF CACHE BOOL "")
24+
set(COMPILER_RT_ENABLE_TVOS OFF CACHE BOOL "")
25+
set(COMPILER_RT_ENABLE_WATCHOS OFF CACHE BOOL "")
26+
endif()
27+
2228
set(CLANG_BOOTSTRAP_TARGETS
2329
check-all
2430
check-llvm

0 commit comments

Comments
 (0)