Commit 1c3e51e4
1c3e51e42296Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 4 files · +1 added · ~3 modified
Description
Merge pull request #471 from ledsun/codex/extract-node-table-loader
[codex] Share text AST node loading
Details
- Commit
- 1c3e51e42296
- Parent
- 96ff6a83b049
- Merge parent
- 113fff47bb54
MakefilemodifiedView file
@@ -121,6 +121,7 @@
121121
122122
CODEGEN_STAMP := build/stamps/spinel_codegen.rb.stamp123123
ANALYZE_STAMP := build/stamps/spinel_analyze.rb.stamp124+
NODE_TABLE_LOADER_STAMP := build/stamps/node_table_loader.rb.stamp124125
PARSE_STAMP := build/stamps/spinel_parse.c.stamp125126
126127
.PHONY: all parse bootstrap codegen test retest clean-test-results regen-expected bench optcarrot clean install uninstall deps@@ -218,13 +219,13 @@
218219
219220
codegen: spinel_analyze$(EXE) spinel_codegen$(EXE)220221
221-
spinel_analyze$(EXE): $(ANALYZE_STAMP) spinel_parse$(EXE)222+
spinel_analyze$(EXE): $(ANALYZE_STAMP) $(NODE_TABLE_LOADER_STAMP) spinel_parse$(EXE)222223
./spinel_parse$(EXE) spinel_analyze.rb build/analyze.ast223224
ruby spinel_analyze.rb build/analyze.ast build/analyze.ir224225
ruby spinel_codegen.rb build/analyze.ast build/analyze.ir build/analyze1.c225226
$(CC) $(BOOTSTRAP_CFLAGS) -Ilib build/analyze1.c $(LDFLAGS) -lm -o spinel_analyze$(EXE)226227
227-
spinel_codegen$(EXE): $(CODEGEN_STAMP) spinel_parse$(EXE)228+
spinel_codegen$(EXE): $(CODEGEN_STAMP) $(NODE_TABLE_LOADER_STAMP) spinel_parse$(EXE)228229
./spinel_parse$(EXE) spinel_codegen.rb build/codegen.ast229230
ruby spinel_analyze.rb build/codegen.ast build/codegen.ir230231
ruby spinel_codegen.rb build/codegen.ast build/codegen.ir build/codegen1.c@@ -314,7 +315,7 @@
314315
# The .ok target is the test's stamp; mtime tracking gives per-test315316
# caching for free. Order-only spinel_parse$(EXE) / spinel_analyze$(EXE)316317
# / spinel_codegen$(EXE) stop a bootstrap relink from invalidating every test.317-
build/test-results/%.ok: test/%.rb $(SP_RT_LIB) $(CODEGEN_STAMP) $(ANALYZE_STAMP) $(PARSE_STAMP) | spinel_parse$(EXE) spinel_analyze$(EXE) spinel_codegen$(EXE)318+
build/test-results/%.ok: test/%.rb $(SP_RT_LIB) $(CODEGEN_STAMP) $(ANALYZE_STAMP) $(NODE_TABLE_LOADER_STAMP) $(PARSE_STAMP) | spinel_parse$(EXE) spinel_analyze$(EXE) spinel_codegen$(EXE)318319
@mkdir -p build/test-results319320
@tmpdir=$$(mktemp -d /tmp/spinel-test.XXXXXX); \320321
ast=$$tmpdir/test.ast; \@@ -467,6 +468,7 @@
467468
install -m 755 spinel_parse$(EXE) $(SPNLDIR)/468469
install -m 755 spinel_analyze$(EXE) $(SPNLDIR)/469470
install -m 755 spinel_codegen$(EXE) $(SPNLDIR)/471+
install -m 644 node_table_loader.rb $(SPNLDIR)/470472
install -m 644 spinel_analyze.rb $(SPNLDIR)/471473
install -m 644 spinel_codegen.rb $(SPNLDIR)/472474
install -m 644 lib/libspinel_rt.a $(SPNLDIR)/lib/node_table_loader.rbaddedView file
Loading diff…
spinel_analyze.rbmodifiedView file
Loading diff…
spinel_codegen.rbmodifiedView file
Loading diff…