Skip to content

Commit

Permalink
Add a sample source file hello.cml to compiler gz
Browse files Browse the repository at this point in the history
  • Loading branch information
myreen committed Sep 19, 2022
1 parent f31a0ae commit fe60f12
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions compiler/bootstrap/compilation/x64/32/Holmakefile
Expand Up @@ -14,7 +14,7 @@ README.md: $(CAKEMLDIR)/developers/readme_gen readmePrefix $(patsubst %,%readmeP

cake.S: *$(ARCH)BootstrapScript.sml

cake-$(ARCH)-$(WORD_SIZE).tar.gz: cake.S basis_ffi.c Makefile how-to.md
tar -chzf $@ --transform='s|^|cake-$(ARCH)-$(WORD_SIZE)/|' cake.S basis_ffi.c Makefile how-to.md
cake-$(ARCH)-$(WORD_SIZE).tar.gz: cake.S basis_ffi.c Makefile hello.cml how-to.md
tar -chzf $@ --transform='s|^|cake-$(ARCH)-$(WORD_SIZE)/|' cake.S basis_ffi.c Makefile hello.cml how-to.md

EXTRA_CLEANS = cake.S cake-$(ARCH)-$(WORD_SIZE).tar.gz
1 change: 1 addition & 0 deletions compiler/bootstrap/compilation/x64/32/hello.cml
4 changes: 2 additions & 2 deletions compiler/bootstrap/compilation/x64/64/Holmakefile
Expand Up @@ -18,8 +18,8 @@ config_enc_str.txt: *$(ARCH)_config_encScript.sml
cake-sexpr-32: *sexprBootstrap32Script.sml
cake-sexpr-64: *sexprBootstrap64Script.sml

cake-$(ARCH)-$(WORD_SIZE).tar.gz: cake.S basis_ffi.c Makefile how-to.md cake-sexpr-32 cake-sexpr-64 config_enc_str.txt candle_boot.ml repl_boot.cml
tar -chzf $@ --transform='s|^|cake-$(ARCH)-$(WORD_SIZE)/|' cake.S basis_ffi.c Makefile how-to.md cake-sexpr-32 cake-sexpr-64 config_enc_str.txt candle_boot.ml repl_boot.cml
cake-$(ARCH)-$(WORD_SIZE).tar.gz: cake.S basis_ffi.c Makefile hello.cml how-to.md cake-sexpr-32 cake-sexpr-64 config_enc_str.txt candle_boot.ml repl_boot.cml
tar -chzf $@ --transform='s|^|cake-$(ARCH)-$(WORD_SIZE)/|' cake.S basis_ffi.c Makefile hello.cml how-to.md cake-sexpr-32 cake-sexpr-64 config_enc_str.txt candle_boot.ml repl_boot.cml
make test-hello.cake # the following lines are a basic test
./test-hello.cake >output
echo 'Hello!'>expected_output
Expand Down
1 change: 1 addition & 0 deletions compiler/bootstrap/compilation/x64/64/hello.cml
1 change: 1 addition & 0 deletions compiler/bootstrap/compilation/x64/hello.cml
@@ -0,0 +1 @@
print "Hello, World!\n";

0 comments on commit fe60f12

Please sign in to comment.