aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-04-28 18:05:45 +0800
committerFelix Lange <fjl@twurst.com>2015-04-29 07:28:35 +0800
commit12df8565cf9466e321527967755517e5f7c17167 (patch)
treedb752955c9d8d18ff9aba64c4ca5be15bf93231f
parenta6a49ccbf77616c1b0fd3a9cd708965211bcab6a (diff)
downloaddexon-12df8565cf9466e321527967755517e5f7c17167.tar
dexon-12df8565cf9466e321527967755517e5f7c17167.tar.gz
dexon-12df8565cf9466e321527967755517e5f7c17167.tar.bz2
dexon-12df8565cf9466e321527967755517e5f7c17167.tar.lz
dexon-12df8565cf9466e321527967755517e5f7c17167.tar.xz
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.
-rwxr-xr-xbuild/env.sh6
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 "$@"