Skip to content

Commit 7d108b4

Browse files
authored
Merge pull request #62302 from CodaFi/Verizion
Forward SWIFT_COMPILER_VERSION
2 parents ec2d7fc + d976d31 commit 7d108b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Parse/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,9 @@ if (SWIFT_SWIFT_PARSER)
7474
)
7575
endif()
7676

77+
if(SWIFT_COMPILER_VERSION)
78+
set_property(SOURCE ParseVersion.cpp APPEND_STRING PROPERTY COMPILE_FLAGS
79+
" -DSWIFT_COMPILER_VERSION=\"\\\"${SWIFT_COMPILER_VERSION}\\\"\"")
80+
endif()
81+
7782
set_swift_llvm_is_available(swiftParse)

0 commit comments

Comments
 (0)