Skip to content

[CMake] Updates to allow inclusion using FetchContent #2173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Sep 28, 2023
Prev Previous commit
[CMake] swift should set 'CMAKE_Swift_COMPILER_TARGET' correctly
So don't use 'SWIFT_HOST_TRIPLE'
  • Loading branch information
rintaro committed Sep 21, 2023
commit 1b410c931ee80abc0e833309c08de9997a90aa9c
6 changes: 0 additions & 6 deletions cmake/modules/AddSwiftHostLibrary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ function(add_swift_syntax_library name)
$<$<COMPILE_LANGUAGE:Swift>:-wmo>)
endif()

if(SWIFT_HOST_TRIPLE)
target_compile_options("${name}" PRIVATE
$<$<COMPILE_LANGUAGE:Swift>:-target;${SWIFT_HOST_TRIPLE};>
)
endif()

if(LLVM_USE_LINKER)
target_link_options(${name} PRIVATE
"-use-ld=${LLVM_USE_LINKER}"
Expand Down