diff options
author | Kartik Agaram <github@akkartik.com> | 2019-08-25 15:11:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-25 15:11:33 -0700 |
commit | e3f1ce673554e64f9ec1710e9ddc9629a0d9d076 (patch) | |
tree | 1960bed25ea27372cfa8344a68f671b1148dc3c7 /build | |
parent | b60d8c920ef988e8058c1e31bd0907643b60cb5d (diff) | |
parent | 57fdbeb2b67a648c178b8dd1813a6a9f06e96c98 (diff) | |
download | mu-e3f1ce673554e64f9ec1710e9ddc9629a0d9d076.tar.gz |
Merge pull request #35 from akkartik/desugar
Desugaring pass
Diffstat (limited to 'build')
-rwxr-xr-x | build | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/build b/build index deee6e64..3d2e945e 100755 --- a/build +++ b/build @@ -109,7 +109,7 @@ older_than subx_bin subx.cc *_list && { # We ought to always rebuild all apps if any .subx layers are updated. # But during development it's too slow to update _all_ apps when we're # repeatedly running a single one. -if [ $ALL ] +if [ ! $ONLY_CPP ] then # Assumption: SubX programs don't need to be retranslated every time we @@ -139,6 +139,14 @@ then } done + # higher-level syntax + for phase in desugar + do + older_than apps/$phase apps/$phase.subx apps/subx-common.subx [0-9]*.subx && { + ./subx_bin translate [0-9]*.subx apps/subx-common.subx apps/$phase.subx -o apps/$phase + } + done + fi exit 0 |