Skip to content

Commit 0a995a6

Browse files
committed
[CMake] For swiftAST add 'SWIFT_BUILD_ONLY_SYNTAXPARSERLIB=1' compiler definition if the CMake variable is true
1 parent fb4038c commit 0a995a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/AST/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ if(SWIFT_BUILD_ONLY_SYNTAXPARSERLIB)
118118
swiftBasic
119119
swiftSyntax
120120
${clangBasicDep})
121+
target_compile_definitions(swiftAST PRIVATE
122+
SWIFT_BUILD_ONLY_SYNTAXPARSERLIB=1)
121123
else()
122124
target_link_libraries(swiftAST PRIVATE
123125
swiftBasic

0 commit comments

Comments
 (0)