From bc749aa671ad8335479da62d5c6ac3b9589ed365 Mon Sep 17 00:00:00 2001 From: "Paolo G. Giarrusso" Date: Mon, 7 May 2018 18:35:49 +0200 Subject: [PATCH] Fix current working directory for building Dotty from cmdline wrappers This fix running e.g. `dotc` in subdirectories of the dotty checkout when Dotty needs rebuilding. Most of `bin/common` accounts for being run in a subdirectory, but the call to sbt didn't. --- bin/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/common b/bin/common index 6b95956f797b..0ed22c039a6a 100755 --- a/bin/common +++ b/bin/common @@ -17,7 +17,7 @@ new_files="$(find "$ROOT/compiler" \( -iname "*.scala" -o -iname "*.java" \) -ne if [ ! -f "$version" ] || [ ! -z "$new_files" ]; then echo "Building Dotty..." - sbt "dist-bootstrapped/pack" + (cd $ROOT && sbt "dist-bootstrapped/pack") fi eval "$target" "$@"