benchmark: Make building with debug info the default (#29669)

This commit is contained in:
Vedant Kumar
2020-02-06 11:03:20 -08:00
committed by GitHub
parent ea1b18f2cc
commit 609c84b600
3 changed files with 15 additions and 0 deletions

View File

@@ -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}"