about summary refs log tree commit diff stats
path: root/test_apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-10-25 22:13:31 -0700
committerKartik Agaram <vc@akkartik.com>2020-10-25 22:32:56 -0700
commit475da72c614ddee250c9542f23e81b6112b0efb8 (patch)
treed8b3825a1ffe4aff733e2cb83b779f18752e07cd /test_apps
parent10d5b13af8cbafe9466426bddd248f6dafb08589 (diff)
downloadmu-475da72c614ddee250c9542f23e81b6112b0efb8.tar.gz
7109
Turns out I've been including some unnecessary files when building apps/mu!

Treeshaken stats before:
  LoC 26258 => 9717
  LoC including common libraries: 29736 => 12719
  binary size: 406K  => 79K

After:
  LoC 26258 => 9717
  LoC including common libraries: 28322 => 12370
  binary size: 406K  => 77K

So our treeshaking isn't perfect. No surprise there..

The treeshaken build also starts to fail without the one-liner change to
mu.subx, which looks like a bug in the treeshaker.
Diffstat (limited to 'test_apps')
-rwxr-xr-xtest_apps4
1 files changed, 2 insertions, 2 deletions
diff --git a/test_apps b/test_apps
index bcd61745..fc0d459c 100755
--- a/test_apps
+++ b/test_apps
@@ -287,7 +287,7 @@ test $NATIVE  &&  {
 }
 
 echo mu
-cat init.$OS [0-9]*.subx apps/mu.subx  |  apps/braces  |  apps/calls  |  apps/sigils  > a.sigils
+cat init.$OS [0-2]*.subx apps/mu.subx  |  apps/braces  |  apps/calls  |  apps/sigils  > a.sigils
 ./bootstrap translate a.sigils -o apps/mu
 test "$1" = 'record'  ||  git diff --exit-code apps/mu
 test $EMULATED  &&  {
@@ -338,7 +338,7 @@ done
 
 # Mu translator
 echo mu
-./translate_subx init.$OS [0-9]*.subx apps/mu.subx
+./translate_subx init.$OS [0-2]*.subx apps/mu.subx
 diff apps/mu a.elf
 
 # Mu programs