jjb: babeltrace: use --enable-asan (on some builds)
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 8 Mar 2023 21:07:37 +0000 (16:07 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 14 Mar 2023 15:37:43 +0000 (11:37 -0400)
Use --enable-asan (which enables address sanitizer) when building
babeltrace > 2.0 with gcc.  On my machine, a clang build with
--enable-asan doesn't quite work, so avoid it for now.

Change-Id: I18bb8b1e75bfa8d9072aa60c5e69673be4b8a390
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
jobs/babeltrace.yaml
scripts/babeltrace/build.sh

index b5f9a359f018d4277bfbebb6374b84d17fd0a918..5339e0fe4cc5bf527f2bd24235e7c2f4928caa79 100644 (file)
           buildtype: linuxbuild
           platforms: !!python/tuple [jammy-amd64]
           builds: !!python/tuple [std, oot, dist, oot-dist]
-          confs: !!python/tuple [std, static, prod, min, doc]
-          filter: ''
+          confs: !!python/tuple [std, static, prod, min, doc, asan]
+          filter: '(build=="std") || (conf=="std") || (conf=="doc")'
           touchstone: '(build == "std") && (conf == "std")'
       - '{job_prefix}babeltrace_{version}_{buildtype}':
           buildtype: build
           platforms: !!python/tuple [bionic-amd64]
           builds: !!python/tuple [std, oot, dist, oot-dist]
-          confs: !!python/tuple [std, static, prod, min, doc]
-          filter: ''
+          confs: !!python/tuple [std, static, prod, min, doc, asan]
+          filter: '(build=="std") || (conf=="std") || (conf=="doc")'
           touchstone: '(build == "std") && (conf == "std")'
       - '{job_prefix}babeltrace_{version}_{buildtype}':
           buildtype: portbuild
index df29e93e60c38b36627331af542276d680e3a8af..1d03f72ab7b1811d26ad2fff7ace4d6e54f626cb 100755 (executable)
@@ -246,6 +246,14 @@ doc)
     CONF_OPTS+=("--enable-python-bindings" "--enable-python-bindings-doc" "--enable-python-plugins" "--enable-api-doc")
     ;;
 
+asan)
+    echo "Address Sanitizer configuration"
+
+    # --enable-asan was introduced after 2.0 but don't check the version, we
+    # want this configuration to fail if ASAN is unavailable.
+    CONF_OPTS+=("--enable-asan" "--enable-python-bindings" "--enable-python-plugins")
+    ;;
+
 min)
     echo "Minimal configuration"
     ;;
This page took 0.024519 seconds and 4 git commands to generate.