From 1387fefe9a0fb229c48268ec866528712299b2b3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 11 Nov 2020 23:27:28 +0100 Subject: Add CI row to run clang sanitizers Some of these are also supported by GCC, but clang supports more and clang on Linux was uncovered before anyway, so this fixes that situation as well. --- .gitlab-ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 35467e2..d6fcc7d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -98,6 +98,24 @@ test:x64_rel: needs: ["x64_rel"] +x64_sanitize: + <<: *build_definition + image: lv2plugin/debian-x64-big + script: python ./waf configure build -sT --no-coverage --no-bindings + variables: + CC: "clang" + CFLAGS: "-fsanitize=address -fsanitize=undefined -fsanitize=float-divide-by-zero -fsanitize=implicit-conversion -fsanitize=local-bounds -fsanitize=nullability" + CXX: "clang++" + CXXFLAGS: "-fsanitize=address -fsanitize=undefined -fsanitize=float-divide-by-zero -fsanitize=implicit-conversion -fsanitize=local-bounds -fsanitize=nullability" + LINKFLAGS: "-fsanitize=address -fsanitize=undefined -fsanitize=float-divide-by-zero -fsanitize=implicit-conversion -fsanitize=local-bounds -fsanitize=nullability" + +test:x64_sanitize: + <<: *test_definition + image: lv2plugin/debian-x64-big + script: python ./waf test + needs: ["x64_sanitize"] + + mac_dbg: <<: *build_definition script: python ./waf configure build -dsT --no-coverage -- cgit v1.2.1