Skip to content

Commit 626e2a6

Browse files
fcambusxgupta
authored andcommitted
[compiler-rt] Use portable "#!/usr/bin/env bash" shebang for tests.
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
1 parent ce21ab2 commit 626e2a6

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

compiler-rt/lib/asan/scripts/asan_device_setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#===- lib/asan/scripts/asan_device_setup -----------------------------------===#
33
#
44
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

compiler-rt/lib/gwp_asan/scripts/symbolize.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# The lines that we're looking to symbolize look like this:
44
#0 ./a.out(_foo+0x3e6) [0x55a52e64c696]

compiler-rt/lib/sanitizer_common/symbolizer/scripts/ar_to_bc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
function usage() {
44
echo "Usage: $0 INPUT... OUTPUT"

compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash -eu
1+
#!/usr/bin/env bash
22
#
33
# Run as: CLANG=bin/clang ZLIB_SRC=src/zlib \
44
# build_symbolizer.sh runtime_build/lib/clang/4.0.0/lib/linux/

compiler-rt/lib/tsan/analyze_libtsan.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Script that prints information about generated code in TSan runtime.
44

compiler-rt/lib/tsan/check_analyze.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
#
33
# Script that checks that critical functions in TSan runtime have correct number
44
# of push/pop/rsp instructions to verify that runtime is efficient enough.

compiler-rt/lib/tsan/check_cmake.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -u
33
set -e
44

0 commit comments

Comments
 (0)