-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve relative path to binaries from wrapper scripts (#1)
This change was made to address this issue: bazel-contrib/rules_go#2290
- Loading branch information
Showing
9 changed files
with
36 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" |
5 changes: 4 additions & 1 deletion
5
toolchain/aarch64-linux-gnu/linux_x86_64/aarch64-linux-gnu-cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" |
5 changes: 4 additions & 1 deletion
5
toolchain/aarch64-linux-gnu/linux_x86_64/aarch64-linux-gnu-gcc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" |
5 changes: 4 additions & 1 deletion
5
toolchain/aarch64-linux-gnu/linux_x86_64/aarch64-linux-gnu-gcov
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" |
5 changes: 4 additions & 1 deletion
5
toolchain/aarch64-linux-gnu/linux_x86_64/aarch64-linux-gnu-objcopy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" |
5 changes: 4 additions & 1 deletion
5
toolchain/aarch64-linux-gnu/linux_x86_64/aarch64-linux-gnu-objdump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" |
5 changes: 4 additions & 1 deletion
5
toolchain/aarch64-linux-gnu/linux_x86_64/aarch64-linux-gnu-strip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" |