@@ -87,6 +87,15 @@ define SetupTestFilesCompilationBody
87
87
88
88
$1_BUILD_INFO := $$($1_OUTPUT_DIR)/_$1-build-info.marker
89
89
90
+ # Tests are built with internal debug symbols where supported.
91
+ # With Visual Studio or on macosx, we revert to external.
92
+ $1_COPY_DEBUG_SYMBOLS := false
93
+ ifeq ($(TOOLCHAIN_TYPE), microsoft)
94
+ $1_COPY_DEBUG_SYMBOLS := true
95
+ else ifeq ($(call isTargetOs, macosx), true)
96
+ $1_COPY_DEBUG_SYMBOLS := true
97
+ endif
98
+
90
99
# Setup a compilation for each and every one of them
91
100
$$(foreach file, $$($1_FILTERED_FILE_LIST),\
92
101
$$(eval name := $$(strip $$(basename $$(notdir $$(file))))) \
@@ -106,7 +115,7 @@ define SetupTestFilesCompilationBody
106
115
LIBS := $$($1_LIBS_$$(name)), \
107
116
TOOLCHAIN := $(if $$(filter %.cpp, $$(file)), TOOLCHAIN_LINK_CXX, TOOLCHAIN_DEFAULT), \
108
117
OPTIMIZATION := $$(if $$($1_OPTIMIZATION_$$(name)),$$($1_OPTIMIZATION_$$(name)),LOW), \
109
- COPY_DEBUG_SYMBOLS := $$(if $$($1_COPY_DEBUG_SYMBOLS_$$(name)),$$($1_COPY_DEBUG_SYMBOLS_$$(name)),false ), \
118
+ COPY_DEBUG_SYMBOLS := $$($1_COPY_DEBUG_SYMBOLS ), \
110
119
STRIP_SYMBOLS := $$(if $$($1_STRIP_SYMBOLS_$$(name)),$$($1_STRIP_SYMBOLS_$$(name)),false), \
111
120
BUILD_INFO_LOG_MACRO := LogInfo, \
112
121
)) \
0 commit comments