Skip to content

Commit bc749aa

Browse files
committed
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.
1 parent b4074b1 commit bc749aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ new_files="$(find "$ROOT/compiler" \( -iname "*.scala" -o -iname "*.java" \) -ne
1717

1818
if [ ! -f "$version" ] || [ ! -z "$new_files" ]; then
1919
echo "Building Dotty..."
20-
sbt "dist-bootstrapped/pack"
20+
(cd $ROOT && sbt "dist-bootstrapped/pack")
2121
fi
2222

2323
eval "$target" "$@"

0 commit comments

Comments
 (0)