mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
benchmark: Make building with debug info the default (#29669)
This commit is contained in:
@@ -355,6 +355,10 @@ function (swift_benchmark_compile_archopts)
|
||||
"-target" "${target}"
|
||||
"-${BENCH_COMPILE_ARCHOPTS_OPT}" ${PAGE_ALIGNMENT_OPTION})
|
||||
|
||||
if(SWIFT_BENCHMARK_GENERATE_DEBUG_INFO)
|
||||
list(APPEND common_options "-g")
|
||||
endif()
|
||||
|
||||
if (is_darwin)
|
||||
list(APPEND common_options
|
||||
"-I" "${srcdir}/utils/ObjectiveCTests"
|
||||
@@ -384,6 +388,10 @@ function (swift_benchmark_compile_archopts)
|
||||
"-target" "${target}"
|
||||
"-${driver_opt}")
|
||||
|
||||
if(SWIFT_BENCHMARK_GENERATE_DEBUG_INFO)
|
||||
list(APPEND common_options_driver "-g")
|
||||
endif()
|
||||
|
||||
if (is_darwin)
|
||||
list(APPEND common_options_driver
|
||||
"-sdk" "${sdk}"
|
||||
|
||||
Reference in New Issue
Block a user