From 72de1359e953390dc2f1ab5a59dd1a4057000acb Mon Sep 17 00:00:00 2001 From: Tim Ruffing Date: Wed, 10 Nov 2021 15:17:26 +0100 Subject: [PATCH] ci: Enable -g if we set CFLAGS manually This enables sanitizers to output line numbers in stack traces. --- .cirrus.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 8111551a7..82a0a99a6 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -293,8 +293,8 @@ task: TEST_ITERS: 16 - name: "UBSan, ASan, LSan" env: - CFLAGS: "-fsanitize=undefined,address" - CFLAGS_FOR_BUILD: "-fsanitize=undefined,address" + CFLAGS: "-fsanitize=undefined,address -g" + CFLAGS_FOR_BUILD: "-fsanitize=undefined,address -g" UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1" ASAN_OPTIONS: "strict_string_checks=1:detect_stack_use_after_return=1:detect_leaks=1" LSAN_OPTIONS: "use_unaligned=1" @@ -329,7 +329,7 @@ task: # ./configure correctly errors out when given CC=g++. # We hack around this by passing CC=g++ only to make. CC: gcc - MAKEFLAGS: -j2 CC=g++ CFLAGS=-fpermissive + MAKEFLAGS: -j2 CC=g++ CFLAGS=-fpermissive\ -g WERROR_CFLAGS: EXPERIMENTAL: yes ECDH: yes