aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2022-04-12 18:09:47 -0500
committerRob Landley <rob@landley.net>2022-04-12 18:09:47 -0500
commitee089094453ff5bd2ff831fc7d75933b4ddcb0c6 (patch)
tree0b98fa22b78a392b069422eb8b54917d7792a5aa
parentcda84ae98884edd8d2b89003c741d5aafc734510 (diff)
downloadtoybox-ee089094453ff5bd2ff831fc7d75933b4ddcb0c6.tar.gz
Unset ASAN after consuming it so scripts/portability.sh can be sourced twice.
-rw-r--r--scripts/portability.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/portability.sh b/scripts/portability.sh
index 1ee43870..3af2be5f 100644
--- a/scripts/portability.sh
+++ b/scripts/portability.sh
@@ -31,9 +31,10 @@ if [ ! -z "$ASAN" ]; then
NOSTRIP=1
# Ignore leaks on exit. TODO
export ASAN_OPTIONS="detect_leaks=0"
+ unset ASAN
fi
-# Centos 7 bug workaround, EOL June 30 2024.
+# Centos 7 bug workaround, EOL June 30 2024. TODO
DASHN=-n; wait -n 2>/dev/null; [ $? -eq 2 ] && unset DASHN
# If the build is using gnu tools, make them behave less randomly.