Skip to content

Commit

Permalink
Improve relative path to binaries from wrapper scripts (#1)
Browse files Browse the repository at this point in the history
This change was made to address this issue: bazel-contrib/rules_go#2290
  • Loading branch information
bsirang authored Apr 26, 2022
1 parent 08edbec commit 95c9f44
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -euo pipefail
external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-ar "$@"

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
EXECROOT="$SCRIPT_DIR/../../../../../"
"$EXECROOT"/external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-ar "$@"
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -euo pipefail
external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-cpp "$@"

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
EXECROOT="$SCRIPT_DIR/../../../../../"
"$EXECROOT"/external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-cpp "$@"
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -euo pipefail
external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-gcc "$@"

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
EXECROOT="$SCRIPT_DIR/../../../../../"
"$EXECROOT"/external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-gcc "$@"
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -euo pipefail
external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-gcov "$@"

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
EXECROOT="$SCRIPT_DIR/../../../../../"
"$EXECROOT"/external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-gcov "$@"
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -euo pipefail
external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-ld "$@"

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
EXECROOT="$SCRIPT_DIR/../../../../../"
"$EXECROOT"/external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-ld "$@"
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -euo pipefail
external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-nm "$@"

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
EXECROOT="$SCRIPT_DIR/../../../../../"
"$EXECROOT"/external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-nm "$@"
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -euo pipefail
external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-objcopy "$@"

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
EXECROOT="$SCRIPT_DIR/../../../../../"
"$EXECROOT"/external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-objcopy "$@"
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -euo pipefail
external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-objdump "$@"

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
EXECROOT="$SCRIPT_DIR/../../../../../"
"$EXECROOT"/external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-objdump "$@"
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -euo pipefail
external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-strip "$@"

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
EXECROOT="$SCRIPT_DIR/../../../../../"
"$EXECROOT"/external/aarch64_linux_gnu_linux_x86_64/bin/aarch64-linux-gnu-strip "$@"

0 comments on commit 95c9f44

Please sign in to comment.