Skip to content

Commit

Permalink
Fix current working directory for building Dotty from cmdline wrappers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Blaisorblade committed May 7, 2018
1 parent b4074b1 commit bc749aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/common
Original file line number Diff line number Diff line change
Expand Up @@ -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" "$@"

0 comments on commit bc749aa

Please sign in to comment.