File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,9 @@ macro(add_sourcekit_library name)
132
132
set (libkind )
133
133
endif ()
134
134
add_library (${name} ${libkind} ${srcs} )
135
+ if (NOT SWIFT_BUILT_STANDALONE AND NOT CMAKE_C_COMPILER_ID MATCHES Clang )
136
+ add_dependencies (${name} clang )
137
+ endif ()
135
138
llvm_update_compile_flags (${name} )
136
139
137
140
set_output_directory (${name}
@@ -228,6 +231,9 @@ macro(add_sourcekit_executable name)
228
231
else ()
229
232
add_executable (${name} ${SOURCEKITEXE_UNPARSED_ARGUMENTS} )
230
233
endif ()
234
+ if (NOT SWIFT_BUILT_STANDALONE AND NOT CMAKE_C_COMPILER_ID MATCHES Clang )
235
+ add_dependencies (${name} clang )
236
+ endif ()
231
237
llvm_update_compile_flags (${name} )
232
238
set_output_directory (${name}
233
239
BINARY_DIR ${SOURCEKIT_RUNTIME_OUTPUT_INTDIR}
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ set(LLVM_EXPORTED_SYMBOL_FILE
10
10
add_swift_host_library (libSwiftSyntaxParser SHARED
11
11
c-include-check.c
12
12
libSwiftSyntaxParser.cpp )
13
+ if (NOT SWIFT_BUILT_STANDALONE AND NOT CMAKE_C_COMPILER_ID MATCHES Clang )
14
+ add_dependencies (libSwiftSyntaxParser clang )
15
+ endif ()
13
16
target_link_libraries (libSwiftSyntaxParser PRIVATE
14
17
swiftParse )
15
18
set_target_properties (libSwiftSyntaxParser
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ add_swift_host_tool(swift-syntax-parser-test
7
7
Support
8
8
SWIFT_COMPONENT tools
9
9
)
10
+ if (NOT SWIFT_BUILT_STANDALONE AND NOT CMAKE_C_COMPILER_ID MATCHES Clang )
11
+ add_dependencies (swift-syntax-parser-test clang )
12
+ endif ()
10
13
target_link_libraries (swift-syntax-parser-test
11
14
PRIVATE
12
15
libSwiftSyntaxParser
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ swift_swap_compiler_if_needed("SyntaxParserUnitTests")
4
4
add_swift_unittest (SwiftSyntaxParserTests
5
5
SyntaxParserTests.cpp
6
6
)
7
+ if (NOT SWIFT_BUILT_STANDALONE AND NOT CMAKE_C_COMPILER_ID STREQUAL Clang )
8
+ add_dependencies (SwiftSyntaxParserTests clang )
9
+ endif ()
7
10
8
11
target_link_libraries (SwiftSyntaxParserTests
9
12
PRIVATE
You can’t perform that action at this time.
0 commit comments