-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simple scripts to run non-bootstrapped compiler after 'sbt buildQuick' (
#19894) The current scripts in `bin` are not suitable for iterative development, as they invoke `sbt dist/pack` whenever any source file has a newer timestamp. Also they are full of magic which I don't think I need for compiler development. I know there are `repl` / `scala` / `scalac` sbt tasks, but I highly prefer working in zsh versus sbt shell, for example because I can `cd` to a `sandbox` directory. Then I run `scq A.scala`, `cfr-decompiler A.class`, stuff like that. This PR is a proposal, I'm curious if anyone else would find it useful.
- Loading branch information
Showing
6 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cp=$(cat $ROOT/bin/.cp) 2> /dev/null | ||
|
||
if [[ "$cp" == "" ]]; then | ||
echo "run 'sbt buildQuick' first" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >& /dev/null && pwd)/.." | ||
. $ROOT/bin/commonQ | ||
|
||
java -cp $cp dotty.tools.MainGenericRunner -usejavacp "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >& /dev/null && pwd)/.." | ||
. $ROOT/bin/commonQ | ||
|
||
java -cp $cp dotty.tools.MainGenericCompiler -usejavacp "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters