Skip to content

Commit e2625bd

Browse files
committed
[CMake] Set 'CMAKE_Swift_COMPILER_TARGET' for swift-syntax
1 parent 0165f09 commit e2625bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,6 +1327,7 @@ if(SWIFT_INCLUDE_TOOLS)
13271327
return()
13281328
endif()
13291329

1330+
set(CMAKE_Swift_COMPILER_TARGET ${SWIFT_HOST_TRIPLE})
13301331
set(BUILD_SHARED_LIBS ON)
13311332
# All libraries in 'swift-syntax' goes to 'lib/swift/host'.
13321333
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${SWIFT_HOST_LIBRARIES_DEST_DIR}")

0 commit comments

Comments
 (0)