From: Simon Marchi Date: Wed, 8 Mar 2023 21:07:37 +0000 (-0500) Subject: jjb: babeltrace: use --enable-asan (on some builds) X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1b232bc6e613efb997fa2f3f749859777030fd11;p=lttng-ci.git jjb: babeltrace: use --enable-asan (on some builds) 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 --- diff --git a/jobs/babeltrace.yaml b/jobs/babeltrace.yaml index b5f9a35..5339e0f 100644 --- a/jobs/babeltrace.yaml +++ b/jobs/babeltrace.yaml @@ -525,15 +525,15 @@ 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 diff --git a/scripts/babeltrace/build.sh b/scripts/babeltrace/build.sh index df29e93..1d03f72 100755 --- a/scripts/babeltrace/build.sh +++ b/scripts/babeltrace/build.sh @@ -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" ;;