Skip to content

Commit

Permalink
[sanitizers] Remove unset variables
Browse files Browse the repository at this point in the history
It looks nothing else uses them.

Differential Revision: https://reviews.llvm.org/D104875
  • Loading branch information
vitalybuka committed Jun 29, 2021
1 parent 1a557c0 commit 25f8c0b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
Expand Up @@ -183,7 +183,7 @@ function tail_pids {
}

function test_android {
if [[ "${BUILDBOT_SLAVENAME:-}" != "" ]]; then
if [[ -v BUILDBOT_BUILDERNAME ]]; then
restart_adb_server
fi

Expand Down
4 changes: 0 additions & 4 deletions zorg/buildbot/builders/sanitizers/buildbot_functions.sh
Expand Up @@ -140,10 +140,6 @@ function build_stage2 {
export MSAN_SYMBOLIZER_PATH="${llvm_symbolizer_path}"
local llvm_use_sanitizer="Memory"
local fsanitize_flag="-fsanitize=memory"
BUILDBOT_MSAN_ORIGINS=${BUILDBOT_MSAN_ORIGINS:-}
if [ "$BUILDBOT_MSAN_ORIGINS" != "" ]; then
llvm_use_sanitizer="MemoryWithOrigins"
fi
local build_type="Release"
elif [ "$sanitizer_name" == "asan" ]; then
export ASAN_SYMBOLIZER_PATH="${llvm_symbolizer_path}"
Expand Down
2 changes: 0 additions & 2 deletions zorg/buildbot/commands/AnnotatedCommand.py
Expand Up @@ -321,8 +321,6 @@ def __init__(self, **kwargs):
'BUILDBOT_GOT_REVISION': util.Interpolate('%(prop:got_revision:-None)s'),
'BUILDBOT_REVISION': util.Interpolate('%(prop:revision:-None)s'),
'BUILDBOT_SCHEDULER': util.Interpolate('%(prop:scheduler:-None)s'),
'BUILDBOT_SLAVENAME': util.Interpolate('%(prop:slavename:-None)s'),
'BUILDBOT_MSAN_ORIGINS': util.Interpolate('%(prop:msan_origins:-)s'),
}
# Apply the passed in environment on top.
old_env = kwargs.get('env') or {}
Expand Down

0 comments on commit 25f8c0b

Please sign in to comment.