bytecode loading from bytecode branch

This commit is contained in:
dzaima 2021-06-11 04:33:13 +03:00
parent 13e0d522e5
commit 47390958ce

View File

@ -1,3 +1,4 @@
SHELL=/usr/bin/env bash
CC=clang
CCFLAGS=-Wno-microsoft-anon-tag
# CC=gcc
@ -30,6 +31,12 @@ core: i32arr.o c32arr.o f64arr.o harr.o fillarr.o stuff.o derv.o mm.o heap.o
@echo $< | cut -c 11-
@$(CMD) $@.d -c $<
../../src/gen/src:
@echo "no precompiled bytecode found; copying from the bytecode branch"
git checkout bytecode ../../src/gen/{compiler,formatter,runtime0,runtime1,src}
git reset ../../src/gen/{compiler,formatter,runtime0,runtime1,src}
load.o: ../../src/gen/src
base: load.o main.o rtwrap.o vm.o ns.o nfns.o
%.o: ../../src/%.c
@echo $< | cut -c 11-