r300257 - [CMake] Support building Fuchsia toolchain on Darwin
Petr Hosek via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 13 14:09:43 PDT 2017
Author: phosek
Date: Thu Apr 13 16:09:42 2017
New Revision: 300257
URL: http://llvm.org/viewvc/llvm-project?rev=300257&view=rev
Log:
[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
Modified:
cfe/trunk/cmake/caches/Fuchsia-stage2.cmake
cfe/trunk/cmake/caches/Fuchsia.cmake
Modified: cfe/trunk/cmake/caches/Fuchsia-stage2.cmake
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/cmake/caches/Fuchsia-stage2.cmake?rev=300257&r1=300256&r2=300257&view=diff
==============================================================================
--- cfe/trunk/cmake/caches/Fuchsia-stage2.cmake (original)
+++ cfe/trunk/cmake/caches/Fuchsia-stage2.cmake Thu Apr 13 16:09:42 2017
@@ -19,6 +19,10 @@ if(NOT APPLE)
set(CLANG_DEFAULT_LINKER lld CACHE STRING "")
endif()
+if(APPLE)
+ set(LLDB_CODESIGN_IDENTITY "" CACHE STRING "")
+endif()
+
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -gline-tables-only -DNDEBUG" CACHE STRING "")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -gline-tables-only -DNDEBUG" CACHE STRING "")
Modified: cfe/trunk/cmake/caches/Fuchsia.cmake
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/cmake/caches/Fuchsia.cmake?rev=300257&r1=300256&r2=300257&view=diff
==============================================================================
--- cfe/trunk/cmake/caches/Fuchsia.cmake (original)
+++ cfe/trunk/cmake/caches/Fuchsia.cmake Thu Apr 13 16:09:42 2017
@@ -19,6 +19,12 @@ if(NOT APPLE)
set(BOOTSTRAP_LLVM_ENABLE_LLD ON CACHE BOOL "")
endif()
+if(APPLE)
+ set(COMPILER_RT_ENABLE_IOS OFF CACHE BOOL "")
+ set(COMPILER_RT_ENABLE_TVOS OFF CACHE BOOL "")
+ set(COMPILER_RT_ENABLE_WATCHOS OFF CACHE BOOL "")
+endif()
+
set(CLANG_BOOTSTRAP_TARGETS
check-all
check-llvm
More information about the cfe-commits
mailing list