diff options
author | Felix Lange <fjl@twurst.com> | 2015-04-28 18:05:45 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-04-29 07:28:35 +0800 |
commit | 12df8565cf9466e321527967755517e5f7c17167 (patch) | |
tree | db752955c9d8d18ff9aba64c4ca5be15bf93231f /build | |
parent | a6a49ccbf77616c1b0fd3a9cd708965211bcab6a (diff) | |
download | dexon-12df8565cf9466e321527967755517e5f7c17167.tar.gz dexon-12df8565cf9466e321527967755517e5f7c17167.tar.zst dexon-12df8565cf9466e321527967755517e5f7c17167.zip |
build: run build commands from the fake workspace root
This ensures that compiler error messages contain the correct path.
Diffstat (limited to 'build')
-rwxr-xr-x | build/env.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build/env.sh b/build/env.sh index b28ad6259..04401a3e1 100755 --- a/build/env.sh +++ b/build/env.sh @@ -24,5 +24,9 @@ GOPATH="$ethdir/go-ethereum/Godeps/_workspace:$workspace" GOBIN="$PWD/build/bin" export GOPATH GOBIN +# Run the command inside the workspace. +cd "$ethdir/go-ethereum" +PWD="$ethdir/go-ethereum" + # Launch the arguments with the configured environment. -exec $@ +exec "$@" |