[compiler-rt] Use portable "#!/usr/bin/env bash" shebang for tests.
authorFrederic Cambus <fred@statdns.com>
Fri, 24 Sep 2021 13:34:16 +0000 (19:04 +0530)
committerShivam Gupta <shivam98.tkg@gmail.com>
Fri, 24 Sep 2021 13:40:07 +0000 (19:10 +0530)
In build_symbolizer.sh we can safely remove the -eu argument from the shebang (which is an unportable construct), as the scripts sets **-e** and **-u** already.

Differential Revision: https://reviews.llvm.org/D110039

compiler-rt/lib/asan/scripts/asan_device_setup
compiler-rt/lib/gwp_asan/scripts/symbolize.sh
compiler-rt/lib/sanitizer_common/symbolizer/scripts/ar_to_bc.sh
compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh
compiler-rt/lib/tsan/analyze_libtsan.sh
compiler-rt/lib/tsan/check_analyze.sh
compiler-rt/lib/tsan/check_cmake.sh

index 95f9d35..4948679 100755 (executable)
@@ -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 6974ee8..0027fa0 100755 (executable)
@@ -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 9359af0..d1d61fb 100755 (executable)
@@ -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 ae29f1b..367ccca 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Script that prints information about generated code in TSan runtime.
 
index 9a245c0..3bd817c 100755 (executable)
@@ -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 7668c5b..15faa5a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -u
 set -e