mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Otherwise we set it on all targets/languages in a subdirectory (I forgot if it propagates up). Regardless, this type of viral stuff is something we want to move away from since it creates a code that is a "forall" piece of code rather than a piece of code that only effects a single target. I also conditionalized the actual definitions being added on the compiled file's language being C,CXX,OBJC,OBJCXX since as we add Swift sources to the host side of the compiler, we will not want these flags to propagate to Swift sources.
10 lines
232 B
CMake
10 lines
232 B
CMake
|
|
|
|
add_swift_host_library(swiftASTSectionImporter STATIC
|
|
ASTSectionImporter.cpp
|
|
LLVM_LINK_COMPONENTS core)
|
|
target_link_libraries(swiftASTSectionImporter PRIVATE
|
|
swiftBasic)
|
|
|
|
set_swift_llvm_is_available(swiftASTSectionImporter)
|