From fe60f122ca62e59b367bbc603b71d88c0b93e191 Mon Sep 17 00:00:00 2001 From: Magnus Myreen Date: Mon, 19 Sep 2022 09:58:34 +0200 Subject: [PATCH] Add a sample source file hello.cml to compiler gz --- compiler/bootstrap/compilation/x64/32/Holmakefile | 4 ++-- compiler/bootstrap/compilation/x64/32/hello.cml | 1 + compiler/bootstrap/compilation/x64/64/Holmakefile | 4 ++-- compiler/bootstrap/compilation/x64/64/hello.cml | 1 + compiler/bootstrap/compilation/x64/hello.cml | 1 + 5 files changed, 7 insertions(+), 4 deletions(-) create mode 120000 compiler/bootstrap/compilation/x64/32/hello.cml create mode 120000 compiler/bootstrap/compilation/x64/64/hello.cml create mode 100644 compiler/bootstrap/compilation/x64/hello.cml diff --git a/compiler/bootstrap/compilation/x64/32/Holmakefile b/compiler/bootstrap/compilation/x64/32/Holmakefile index 9467bd169f..161c78f6b9 100644 --- a/compiler/bootstrap/compilation/x64/32/Holmakefile +++ b/compiler/bootstrap/compilation/x64/32/Holmakefile @@ -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 diff --git a/compiler/bootstrap/compilation/x64/32/hello.cml b/compiler/bootstrap/compilation/x64/32/hello.cml new file mode 120000 index 0000000000..281e518da0 --- /dev/null +++ b/compiler/bootstrap/compilation/x64/32/hello.cml @@ -0,0 +1 @@ +../hello.cml \ No newline at end of file diff --git a/compiler/bootstrap/compilation/x64/64/Holmakefile b/compiler/bootstrap/compilation/x64/64/Holmakefile index 5e765cc000..8ab472bff8 100644 --- a/compiler/bootstrap/compilation/x64/64/Holmakefile +++ b/compiler/bootstrap/compilation/x64/64/Holmakefile @@ -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 diff --git a/compiler/bootstrap/compilation/x64/64/hello.cml b/compiler/bootstrap/compilation/x64/64/hello.cml new file mode 120000 index 0000000000..281e518da0 --- /dev/null +++ b/compiler/bootstrap/compilation/x64/64/hello.cml @@ -0,0 +1 @@ +../hello.cml \ No newline at end of file diff --git a/compiler/bootstrap/compilation/x64/hello.cml b/compiler/bootstrap/compilation/x64/hello.cml new file mode 100644 index 0000000000..9074bbcd19 --- /dev/null +++ b/compiler/bootstrap/compilation/x64/hello.cml @@ -0,0 +1 @@ +print "Hello, World!\n";