Skip to content

Commit 72de135

Browse files
ci: Enable -g if we set CFLAGS manually
This enables sanitizers to output line numbers in stack traces.
1 parent 74c34e7 commit 72de135

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.cirrus.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ task:
293293
TEST_ITERS: 16
294294
- name: "UBSan, ASan, LSan"
295295
env:
296-
CFLAGS: "-fsanitize=undefined,address"
297-
CFLAGS_FOR_BUILD: "-fsanitize=undefined,address"
296+
CFLAGS: "-fsanitize=undefined,address -g"
297+
CFLAGS_FOR_BUILD: "-fsanitize=undefined,address -g"
298298
UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1"
299299
ASAN_OPTIONS: "strict_string_checks=1:detect_stack_use_after_return=1:detect_leaks=1"
300300
LSAN_OPTIONS: "use_unaligned=1"
@@ -329,7 +329,7 @@ task:
329329
# ./configure correctly errors out when given CC=g++.
330330
# We hack around this by passing CC=g++ only to make.
331331
CC: gcc
332-
MAKEFLAGS: -j2 CC=g++ CFLAGS=-fpermissive
332+
MAKEFLAGS: -j2 CC=g++ CFLAGS=-fpermissive\ -g
333333
WERROR_CFLAGS:
334334
EXPERIMENTAL: yes
335335
ECDH: yes

0 commit comments

Comments
 (0)