about summary refs log tree commit diff stats
path: root/build
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-09-19 21:01:43 -0700
committerKartik Agaram <vc@akkartik.com>2019-09-19 23:25:49 -0700
commitfd91f7f61bfa84cbc24590d5394d75891cc1cfcc (patch)
tree6cbaebc23ed7c3b8627dac22e7054f14c4d38fe9 /build
parent881c7f02708ceaef54a0d8b5fcc136a3003d3e09 (diff)
downloadmu-fd91f7f61bfa84cbc24590d5394d75891cc1cfcc.tar.gz
5675 - move helpers from subx-common into layers
This undoes 5672 in favor of a new plan:

Layers 000 - 099 are for running without syntax sugar. We use them for
building syntax-sugar passes.

Layers 100 and up are for running with all syntax sugar.

The layers are arranged in approximate order so more phases rely on earlier
layers than later ones.

I plan to not use intermediate syntax sugar (just sigils without calls,
or sigils and calls without braces) anywhere except in the specific passes
implementing them.
Diffstat (limited to 'build')
-rwxr-xr-xbuild50
1 files changed, 0 insertions, 50 deletions
diff --git a/build b/build
index 0d723656..9e95bb34 100755
--- a/build
+++ b/build
@@ -106,54 +106,4 @@ older_than subx_bin subx.cc *_list && {
   $CXX $CFLAGS subx.cc -o subx_bin
 }
 
-# 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 [ ! $ONLY_CPP ]
-then
-
-  # Assumption: SubX programs don't need to be retranslated every time we
-  # rebuild the C++ bootstrap.
-
-  OS=${OS:-linux}
-
-  # simple example programs
-  for n in `seq 1 12`
-  do
-    older_than examples/ex$n init.$OS examples/ex$n.subx && {
-      ./subx_bin translate init.$OS examples/ex$n.subx -o examples/ex$n
-    }
-  done
-
-  # simple apps that use the standard library
-  for app in factorial crenshaw2-1 crenshaw2-1b handle
-  do
-    older_than apps/$app init.$OS [0-9]*.subx apps/$app.subx && {
-      ./subx_bin translate init.$OS [0-9]*.subx apps/$app.subx -o apps/$app
-    }
-  done
-
-  # self-hosting translator
-
-  older_than apps/hex init.$OS 0[0-6]*.subx 070---hex.subx && {
-    ./subx_bin translate init.$OS 0[0-6]*.subx 070---hex.subx -o apps/hex
-  }
-
-  for phase in hex survey pack assort dquotes tests
-  do
-    older_than apps/$phase init.$OS [0-9]*.subx apps/subx-common.subx apps/$phase.subx && {
-      ./subx_bin translate init.$OS [0-9]*.subx apps/subx-common.subx apps/$phase.subx -o apps/$phase
-    }
-  done
-
-  # higher-level syntax
-  for phase in sigils
-  do
-    older_than apps/$phase init.$OS [0-9]*.subx apps/subx-common.subx apps/$phase.subx && {
-      ./subx_bin translate init.$OS [0-9]*.subx apps/subx-common.subx apps/$phase.subx -o apps/$phase
-    }
-  done
-
-fi
-
 exit 0
rtik/mu/commit/cpp/literate/002trace.tests?h=hlt&id=515309164793b2e03c15954bf8a89f0f288a7f2c'>51530916 ^
5af83346 ^
35064671 ^

5af83346 ^
51530916 ^

5af83346 ^
35064671 ^
5af83346 ^
51530916 ^

d7494165 ^
35064671 ^
d7494165 ^


51530916 ^
35064671 ^


4a943d4e ^


51530916 ^

51530916 ^
35064671 ^

51530916 ^



35064671 ^

51530916 ^


eba30983 ^
35064671 ^
4c569925 ^
eba30983 ^

6e1eeeeb ^




51530916 ^

36594a43 ^
5f98a10c ^
6e1eeeeb ^

5f98a10c ^
36594a43 ^
5f98a10c ^
51530916 ^
51530916 ^




05d17773 ^
51530916 ^




05d17773 ^
51530916 ^




05d17773 ^

51530916 ^




05d17773 ^


51530916 ^




05d17773 ^


51530916 ^
d7494165 ^















1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133