File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 8
8
9
9
# Build swift-syntax libraries with FetchContent.
10
10
function (includeSwiftSyntax )
11
+ set (CMAKE_SYSTEM_PROCESSOR ${SWIFT_HOST_VARIANT_ARCH} )
12
+ set (CMAKE_OSX_ARCHITECTURES ${SWIFT_HOST_VARIANT_ARCH} )
13
+ set (CMAKE_C_COMPILER_TARGET ${SWIFT_HOST_TRIPLE} )
14
+ set (CMAKE_CXX_COMPILER_TARGET ${SWIFT_HOST_TRIPLE} )
11
15
set (CMAKE_Swift_COMPILER_TARGET ${SWIFT_HOST_TRIPLE} )
12
16
set (BUILD_SHARED_LIBS ON )
13
17
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${SWIFT_HOST_LIBRARIES_DEST_DIR} /compiler" )
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ if(NOT EXISTS "${SWIFT_PATH_TO_SWIFT_SYNTAX_SOURCE}")
7
7
endif ()
8
8
9
9
# Build swift-syntax libraries with FetchContent.
10
+ set (CMAKE_SYSTEM_PROCESSOR ${SWIFT_HOST_VARIANT_ARCH} )
11
+ set (CMAKE_OSX_ARCHITECTURES ${SWIFT_HOST_VARIANT_ARCH} )
12
+ set (CMAKE_C_COMPILER_TARGET ${SWIFT_HOST_TRIPLE} )
13
+ set (CMAKE_CXX_COMPILER_TARGET ${SWIFT_HOST_TRIPLE} )
10
14
set (CMAKE_Swift_COMPILER_TARGET ${SWIFT_HOST_TRIPLE} )
11
15
set (BUILD_SHARED_LIBS ON )
12
16
# All libraries in 'swift-syntax' goes to 'lib/swift/host'.
You can’t perform that action at this time.
0 commit comments