File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -1324,7 +1324,7 @@ endfunction()
1324
1324
function (add_swift_host_library name )
1325
1325
set (options FORCE_BUILD_OPTIMIZED )
1326
1326
set (single_parameter_options )
1327
- set (multiple_parameter_options )
1327
+ set (multiple_parameter_options GYB_SOURCES )
1328
1328
1329
1329
cmake_parse_arguments (ASHL
1330
1330
"${options} "
@@ -1333,7 +1333,10 @@ function(add_swift_host_library name)
1333
1333
${ARGN} )
1334
1334
set (ASHL_SOURCES ${ASHL_UNPARSED_ARGUMENTS} )
1335
1335
1336
- llvm_add_library (${name} ${ASHL_UNPARSED_ARGUMENTS} )
1336
+ handle_gyb_sources (gyb_generated_targets ASHL_GYB_SOURCES
1337
+ ${SWIFT_HOST_VARIANT_ARCH} )
1338
+ llvm_add_library (${name} ${ASHL_GYB_SOURCES} ${ASHL_UNPARSED_ARGUMENTS}
1339
+ DEPENDS ${gyb_generated_targets} )
1337
1340
if (ASHL_FORCE_BUILD_OPTIMIZED )
1338
1341
target_compile_options (${name} PRIVATE "-O2" )
1339
1342
endif ()
Original file line number Diff line number Diff line change @@ -99,8 +99,8 @@ add_swift_host_library(swiftBasic STATIC
99
99
# Platform-agnostic fallback TaskQueue implementation
100
100
Default/TaskQueue.inc
101
101
102
- UnicodeExtendedGraphemeClusters.cpp.gyb
103
-
102
+ GYB_SOURCES
103
+ UnicodeExtendedGraphemeClusters.cpp.gyb
104
104
LINK_LIBS
105
105
swiftDemangling
106
106
${UUID_LIBRARIES}
Original file line number Diff line number Diff line change 5
5
endif ()
6
6
7
7
add_swift_host_library (swiftSyntax STATIC
8
- SyntaxNodes.cpp.gyb
9
- SyntaxBuilders.cpp.gyb
10
- SyntaxKind.cpp.gyb
11
- SyntaxFactory.cpp.gyb
12
- SyntaxVisitor.cpp.gyb
13
- Trivia.cpp.gyb
14
8
RawSyntax.cpp
15
9
Syntax.cpp
16
10
SyntaxData.cpp
17
- SyntaxSerialization.cpp.gyb
18
- UnknownSyntax.cpp )
11
+ UnknownSyntax.cpp
12
+ GYB_SOURCES
13
+ SyntaxNodes.cpp.gyb
14
+ SyntaxBuilders.cpp.gyb
15
+ SyntaxKind.cpp.gyb
16
+ SyntaxFactory.cpp.gyb
17
+ SyntaxVisitor.cpp.gyb
18
+ Trivia.cpp.gyb
19
+ SyntaxSerialization.cpp.gyb )
You can’t perform that action at this time.
0 commit comments