mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Benchmarks: Skip long benchmarks in -Onone build
This commit is contained in:
@@ -363,6 +363,10 @@ function (swift_benchmark_compile_archopts)
|
||||
list(APPEND common_options "-g")
|
||||
endif()
|
||||
|
||||
if("${optflag}" STREQUAL "Onone")
|
||||
list(APPEND common_options "-DDEBUG")
|
||||
endif()
|
||||
|
||||
if (is_darwin)
|
||||
list(APPEND common_options
|
||||
"-I" "${srcdir}/utils/ObjectiveCTests"
|
||||
@@ -400,6 +404,10 @@ function (swift_benchmark_compile_archopts)
|
||||
"-target" "${target}"
|
||||
"-${driver_opt}")
|
||||
|
||||
if(${optflag} STREQUAL "Onone")
|
||||
list(APPEND common_options_driver "-DDEBUG")
|
||||
endif()
|
||||
|
||||
if(SWIFT_BENCHMARK_GENERATE_DEBUG_INFO)
|
||||
list(APPEND common_options_driver "-g")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user