mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
build: tweak gyb line directives
Make the quoted parameters more portable. This is needed in order to support building swift on Windows. Simplify the declaration of the flags and do a small formatting clean up. This ensures that the ninja generation gets the command line invocation correct.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
set(line_directive "#line" "%(line)d" "\"%(file)s\"")
|
||||
set(SWIFT_GYB_FLAGS
|
||||
--line-directive "'${line_directive}'")
|
||||
if(CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
|
||||
set(SWIFT_GYB_FLAGS --line-directive "^\"#line %(line)d \\\"%(file)s\\\"^\"")
|
||||
else()
|
||||
set(SWIFT_GYB_FLAGS --line-directive "\'#line" "%(line)d" "\"%(file)s\"\'")
|
||||
endif()
|
||||
|
||||
set(generated_include_sources
|
||||
SyntaxKind.h.gyb
|
||||
|
||||
Reference in New Issue
Block a user