Index: compiler-rt/lib/asan/scripts/asan_device_setup =================================================================== --- compiler-rt/lib/asan/scripts/asan_device_setup +++ compiler-rt/lib/asan/scripts/asan_device_setup @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #===- lib/asan/scripts/asan_device_setup -----------------------------------===# # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. Index: compiler-rt/lib/gwp_asan/scripts/symbolize.sh =================================================================== --- compiler-rt/lib/gwp_asan/scripts/symbolize.sh +++ compiler-rt/lib/gwp_asan/scripts/symbolize.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # The lines that we're looking to symbolize look like this: #0 ./a.out(_foo+0x3e6) [0x55a52e64c696] Index: compiler-rt/lib/sanitizer_common/symbolizer/scripts/ar_to_bc.sh =================================================================== --- compiler-rt/lib/sanitizer_common/symbolizer/scripts/ar_to_bc.sh +++ compiler-rt/lib/sanitizer_common/symbolizer/scripts/ar_to_bc.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash function usage() { echo "Usage: $0 INPUT... OUTPUT" Index: compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh =================================================================== --- compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh +++ compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh @@ -1,4 +1,4 @@ -#!/bin/bash -eu +#!/usr/bin/env bash # # Run as: CLANG=bin/clang ZLIB_SRC=src/zlib \ # build_symbolizer.sh runtime_build/lib/clang/4.0.0/lib/linux/ Index: compiler-rt/lib/tsan/analyze_libtsan.sh =================================================================== --- compiler-rt/lib/tsan/analyze_libtsan.sh +++ compiler-rt/lib/tsan/analyze_libtsan.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Script that prints information about generated code in TSan runtime. Index: compiler-rt/lib/tsan/check_analyze.sh =================================================================== --- compiler-rt/lib/tsan/check_analyze.sh +++ compiler-rt/lib/tsan/check_analyze.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Script that checks that critical functions in TSan runtime have correct number # of push/pop/rsp instructions to verify that runtime is efficient enough. Index: compiler-rt/lib/tsan/check_cmake.sh =================================================================== --- compiler-rt/lib/tsan/check_cmake.sh +++ compiler-rt/lib/tsan/check_cmake.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -u set -e