Skip to content

Commit 5d3f9cb

Browse files
authored
Merge pull request #5192 from llvm-beanz/swiftSIL-missing-dep
2 parents a989e99 + dcebddc commit 5d3f9cb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/SIL/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ add_swift_library(swiftSIL STATIC
3737
swiftSema
3838
)
3939

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

0 commit comments

Comments
 (0)