Skip to content

[CMake] swiftSIL needs intrinsics_gen #5192

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 1 commit into from
Oct 8, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/SIL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ add_swift_library(swiftSIL STATIC
swiftSema
)

# This property is only set by calls to clang_tablegen. It will not be set on
# standalone builds, so it can always be safely passed.
get_property(CLANG_TABLEGEN_TARGETS GLOBAL PROPERTY CLANG_TABLEGEN_TARGETS)
if(CLANG_TABLEGEN_TARGETS)
add_dependencies(swiftSIL
${CLANG_TABLEGEN_TARGETS})
# intrinsics_gen is the LLVM tablegen target that generates the include files
# where intrinsics and attributes are declared. See the comment in lib/AST for
# more detail.
if(NOT SWIFT_BUILT_STANDALONE)
get_property(CLANG_TABLEGEN_TARGETS GLOBAL PROPERTY CLANG_TABLEGEN_TARGETS)
add_dependencies(swiftSIL intrinsics_gen ${CLANG_TABLEGEN_TARGETS})
endif(CLANG_TABLEGEN_TARGETS)