mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This patch reworks the line-directive command line argument for gyb to take in a python-style format string with `line` and `file` variables to be substituted.
14 lines
347 B
CMake
14 lines
347 B
CMake
set(line_directive "#line" "%(line)d" "\"%(file)s\"")
|
|
set(SWIFT_GYB_FLAGS
|
|
--line-directive "'${line_directive}'")
|
|
|
|
set(generated_include_sources
|
|
SyntaxKind.h.gyb
|
|
SyntaxNodes.h.gyb
|
|
SyntaxBuilders.h.gyb
|
|
SyntaxFactory.h.gyb
|
|
SyntaxVisitor.h.gyb)
|
|
|
|
add_gyb_target(swift-syntax-generated-headers
|
|
"${generated_include_sources}")
|