Skip to content

Commit 1b410c9

Browse files
committed
[CMake] swift should set 'CMAKE_Swift_COMPILER_TARGET' correctly
So don't use 'SWIFT_HOST_TRIPLE'
1 parent bcd7fc4 commit 1b410c9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cmake/modules/AddSwiftHostLibrary.cmake

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,6 @@ function(add_swift_syntax_library name)
8484
$<$<COMPILE_LANGUAGE:Swift>:-wmo>)
8585
endif()
8686

87-
if(SWIFT_HOST_TRIPLE)
88-
target_compile_options("${name}" PRIVATE
89-
$<$<COMPILE_LANGUAGE:Swift>:-target;${SWIFT_HOST_TRIPLE};>
90-
)
91-
endif()
92-
9387
if(LLVM_USE_LINKER)
9488
target_link_options(${name} PRIVATE
9589
"-use-ld=${LLVM_USE_LINKER}"

0 commit comments

Comments
 (0)