Skip to content

Commit d976d31

Browse files
committed
Forward SWIFT_COMPILER_VERSION
This is set on a per-file basis and was not forwarded when #61014 was integrated. This is a short-term fix for this issue. I don't see a reason this version number should be applied to individual files instead of being passed as an argument to every translation unit. rdar://102731783
1 parent 5d0ede0 commit d976d31

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)