mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The recommended way forward is to use the SyntaxClassifier on the Swift side. By removing the C++ SyntaxClassifier, we can also eliminate the -force-libsyntax-based-processing option that was used to bootstrap incremental parsing and would generate the syntax map from a syntax tree.
17 lines
465 B
CMake
17 lines
465 B
CMake
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
|
|
SyntaxNodes.h.gyb
|
|
SyntaxBuilders.h.gyb
|
|
SyntaxFactory.h.gyb
|
|
SyntaxVisitor.h.gyb
|
|
Trivia.h.gyb)
|
|
|
|
add_gyb_target(swift-syntax-generated-headers
|
|
"${generated_include_sources}")
|