Commit 00148ed3 authored by Joseph Noir's avatar Joseph Noir

Only detect leaks with ASAN on Linux

parent 3654e5ed
...@@ -24,7 +24,6 @@ pipeline { ...@@ -24,7 +24,6 @@ pipeline {
environment { environment {
LD_LIBRARY_PATH = "$WORKSPACE/caf-sources/build/lib" LD_LIBRARY_PATH = "$WORKSPACE/caf-sources/build/lib"
DYLD_LIBRARY_PATH = "$WORKSPACE/caf-sources/build/lib" DYLD_LIBRARY_PATH = "$WORKSPACE/caf-sources/build/lib"
ASAN_OPTIONS = 'detect_leaks=1'
} }
stages { stages {
stage ('Git Checkout') { stage ('Git Checkout') {
...@@ -148,7 +147,8 @@ def unixBuild(buildType = 'Debug', ...@@ -148,7 +147,8 @@ def unixBuild(buildType = 'Debug',
generator = 'Unix Makefiles', generator = 'Unix Makefiles',
cleanBuild = true) { cleanBuild = true) {
echo "building on $NODE_NAME" echo "building on $NODE_NAME"
withEnv(["label_exp="+STAGE_NAME.toLowerCase()]) { withEnv(["label_exp="+STAGE_NAME.toLowerCase(),
"ASAN_OPTIONS=detect_leaks="+(STAGE_NAME.contains("Linux") ? 1 : 0)]) {
deleteDir() deleteDir()
unstash('caf-sources') unstash('caf-sources')
dir('caf-sources') { dir('caf-sources') {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment