Files
swift-mirror/include/swift/Syntax/CMakeLists.txt
Harlan aed3c47571 [gyb] Rework line directives to allow for C++-style directives (#13965)
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.
2018-01-16 14:42:48 -05:00

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}")