Skip to content

Commit 61c5064

Browse files
committed
build: use clang/clang-cl to build SwiftSyntaxParser
This allows us to build SwiftSyntaxParser even if we are building with a different compiler (i.e. cl).
1 parent 9b8310c commit 61c5064

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

tools/libSwiftSyntaxParser/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
include(SwiftWindowsSupport)
2+
swift_swap_compiler_if_needed("SwiftSyntaxParser")
3+
14
# Use an 'internal' name, this is primarily intended for SwiftSyntax to import.
25
set(SYNTAX_PARSER_LIB_NAME "_InternalSwiftSyntaxParser")
36

tools/swift-syntax-parser-test/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
include(SwiftWindowsSupport)
2+
swift_swap_compiler_if_needed("SwiftSyntaxParserTest")
3+
14
add_swift_host_tool(swift-syntax-parser-test
25
swift-syntax-parser-test.cpp
36
LLVM_COMPONENT_DEPENDS

unittests/SyntaxParser/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
include(SwiftWindowsSupport)
2+
swift_swap_compiler_if_needed("SyntaxParserUnitTests")
3+
14
add_swift_unittest(SwiftSyntaxParserTests
25
SyntaxParserTests.cpp
36
)

0 commit comments

Comments
 (0)