From 37727929bb07aec91038a9e4d14dc5a9290a9df5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 11 Nov 2020 12:37:53 +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 | 17 +++++++++++++++++ waflib | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fd080fd..09e5596 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -114,6 +114,23 @@ test:x64_static: script: python ./waf test needs: ["x64_static"] +x64_sanitize: + <<: *build_definition + image: lv2plugin/debian-x64-clang + script: python ./waf configure build -ST --werror --no-coverage --no-test-malloc + variables: + CC: "clang" + CFLAGS: "-fsanitize=address -fsanitize=undefined -fsanitize=float-divide-by-zero -fsanitize=unsigned-integer-overflow -fsanitize=implicit-conversion -fsanitize=local-bounds -fsanitize=nullability" + CXX: "clang++" + CXXFLAGS: "-fsanitize=address -fsanitize=undefined -fsanitize=float-divide-by-zero -fsanitize=unsigned-integer-overflow -fsanitize=implicit-conversion -fsanitize=local-bounds -fsanitize=nullability" + LINKFLAGS: "-fsanitize=address -fsanitize=undefined -fsanitize=float-divide-by-zero -fsanitize=unsigned-integer-overflow -fsanitize=implicit-conversion -fsanitize=local-bounds -fsanitize=nullability" + +test:x64_sanitize: + <<: *test_definition + image: lv2plugin/debian-x64-clang + script: python ./waf test + needs: ["x64_sanitize"] + mingw32_dbg: <<: *build_definition diff --git a/waflib b/waflib index 41c2c98..d199922 160000 --- a/waflib +++ b/waflib @@ -1 +1 @@ -Subproject commit 41c2c98d04eb7b1b776effaea5a1cd3066a73bae +Subproject commit d19992202543ebb810609c074f754b5ec48c0fd7 -- cgit v1.2.1