Files
swift-mirror/lib/ASTSectionImporter/CMakeLists.txt
Michael Gottesman 9412f19802 [cmake] Change set_swift_llvm_is_available to set definitions on a specific target.
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.
2021-05-19 13:22:02 -07:00

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)