@@ -319,6 +319,7 @@ function (swift_benchmark_compile_archopts)
319
319
${extra_options}
320
320
"-parse-as-library"
321
321
${bench_flags}
322
+ ${SWIFT_BENCHMARK_EXTRA_FLAGS}
322
323
"-module-name" "${module_name} "
323
324
"-emit-module-path" "${swiftmodule} "
324
325
"-I" "${objdir} "
@@ -336,6 +337,7 @@ function (swift_benchmark_compile_archopts)
336
337
${common_swift4_options}
337
338
"-parse-as-library"
338
339
${bench_flags}
340
+ ${SWIFT_BENCHMARK_EXTRA_FLAGS}
339
341
"-module-name" "${module_name} "
340
342
"-I" "${objdir} "
341
343
"-emit-sib"
@@ -363,7 +365,7 @@ function (swift_benchmark_compile_archopts)
363
365
SOURCE_DIR "${srcdir} "
364
366
OBJECT_DIR "${objdir} "
365
367
SOURCES ${${module_name}_sources}
366
- LIBRARY_FLAGS ${common_swift4_options} ${bench_flags}
368
+ LIBRARY_FLAGS ${common_swift4_options} ${bench_flags} ${SWIFT_BENCHMARK_EXTRA_FLAGS}
367
369
DEPENDS ${bench_library_objects} ${stdlib_dependencies} )
368
370
precondition (objfile_out )
369
371
list (APPEND SWIFT_BENCH_OBJFILES "${objfile_out} " )
@@ -381,7 +383,7 @@ function (swift_benchmark_compile_archopts)
381
383
SOURCE_DIR "${srcdir} "
382
384
OBJECT_DIR "${objdir} "
383
385
SOURCES ${${module_name}_sources}
384
- LIBRARY_FLAGS ${common_swift4_options} ${bench_flags}
386
+ LIBRARY_FLAGS ${common_swift4_options} ${bench_flags} ${SWIFT_BENCHMARK_EXTRA_FLAGS}
385
387
DEPENDS ${bench_library_objects} ${stdlib_dependencies} )
386
388
precondition (objfiles_out )
387
389
list (APPEND SWIFT_BENCH_OBJFILES ${objfiles_out} )
@@ -399,7 +401,7 @@ function (swift_benchmark_compile_archopts)
399
401
SOURCE_DIR "${srcdir} "
400
402
OBJECT_DIR "${objdir} "
401
403
SOURCES ${${module_name}_sources}
402
- LIBRARY_FLAGS ${common_swift4_options} ${bench_flags}
404
+ LIBRARY_FLAGS ${common_swift4_options} ${bench_flags} ${SWIFT_BENCHMARK_EXTRA_FLAGS}
403
405
DEPENDS ${bench_library_objects} ${stdlib_dependencies} )
404
406
precondition (objfile_out )
405
407
list (APPEND SWIFT_BENCH_OBJFILES "${objfile_out} " )
@@ -417,7 +419,7 @@ function (swift_benchmark_compile_archopts)
417
419
SOURCE_DIR "${srcdir} "
418
420
OBJECT_DIR "${objdir} "
419
421
SOURCES ${${module_name}_sources}
420
- LIBRARY_FLAGS ${common_swift4_options} ${bench_flags}
422
+ LIBRARY_FLAGS ${common_swift4_options} ${bench_flags} ${SWIFT_BENCHMARK_EXTRA_FLAGS}
421
423
DEPENDS ${bench_library_objects} ${stdlib_dependencies} )
422
424
precondition (objfiles_out )
423
425
list (APPEND SWIFT_BENCH_OBJFILES ${objfiles_out} )
0 commit comments