From 9e5e87ca3776efa5f0d772ed8cf348bf6ee4d08e Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 2 Jan 2020 01:41:55 -0800 Subject: 5865 Give the bootstrap C++ program a less salient name. --- build | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'build') diff --git a/build b/build index 96cfc313..6a654fd0 100755 --- a/build +++ b/build @@ -3,9 +3,9 @@ # non-zero exit status only on error during building set -e # stop immediately on error -# [0-9]*.cc -> subx.cc -> subx_bin -# (layers) | | -# tangle $CXX +# [0-9]*.cc -> bootstrap.cc -> bootstrap_bin +# (layers) | | +# tangle $CXX # can also be called with a layer to only build until # $ ./build --until 050 @@ -87,17 +87,17 @@ older_than tools/tangle tools/tangle.cc && { } LAYERS=$(tools/enumerate --until $UNTIL_LAYER |grep '.cc$') -older_than subx.cc $LAYERS tools/enumerate tools/tangle && { +older_than bootstrap.cc $LAYERS tools/enumerate tools/tangle && { # no update here; rely on 'update' calls downstream - tools/tangle $LAYERS > subx.cc + tools/tangle $LAYERS > bootstrap.cc } -grep -h "^[^[:space:]#].*) {$" subx.cc |grep -v ":.*(" |sed 's/ {.*/;/' |update function_list -grep -h "^\s*void test_" subx.cc |sed 's/^\s*void \(.*\)() {.*/\1,/' |update test_list -grep -h "^\s*void test_" subx.cc |sed 's/^\s*void \(.*\)() {.*/"\1",/' |update test_name_list +grep -h "^[^[:space:]#].*) {$" bootstrap.cc |grep -v ":.*(" |sed 's/ {.*/;/' |update function_list +grep -h "^\s*void test_" bootstrap.cc |sed 's/^\s*void \(.*\)() {.*/\1,/' |update test_list +grep -h "^\s*void test_" bootstrap.cc |sed 's/^\s*void \(.*\)() {.*/"\1",/' |update test_name_list -older_than subx_bin subx.cc *_list && { - $CXX $CFLAGS subx.cc -o subx_bin +older_than bootstrap_bin bootstrap.cc *_list && { + $CXX $CFLAGS bootstrap.cc -o bootstrap_bin } exit 0 -- cgit 1.4.1-2-gfad0 ass='form'>
path: root/subx/063error.subx
blob: db460db120ae697b1e8d385da4b17ea0b33dfc4a (plain) (blame)
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