From ce5686edc748fdbf30f88b11c427aefd1a6ca272 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Tue, 7 Mar 2023 12:32:54 -0600 Subject: [PATCH] Have ASAN CI use debug build This catches things that might be optimized away by the compiler. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d7336b982..20b63e142 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -102,7 +102,7 @@ jobs: mkdir build && cd build # Rust's ASAN requires the build system to explicitly pass a --target triple. We read that # value from CMake variable Rust_CARGO_TARGET (shared with corrosion). - cmake .. -DASAN=1 -DRust_CARGO_TARGET=x86_64-unknown-linux-gnu + cmake .. -DASAN=1 -DRust_CARGO_TARGET=x86_64-unknown-linux-gnu -DCMAKE_BUILD_TYPE=Debug - name: make run: | make