Benchmarks: Skip long benchmarks in -Onone build

This commit is contained in:
Slava Pestov
2025-08-26 16:15:37 -04:00
parent 694274204b
commit 2ec19ecb46
5 changed files with 27 additions and 3 deletions

View File

@@ -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()