refresh precompiled bytecode until genRuntime
This commit is contained in:
parent
19449416c8
commit
cd86a0b242
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env bqn
|
||||
# to revert to using precompiled bytecode, remove the file src/gen/customRuntime
|
||||
args←•args
|
||||
"Usage: ./getRuntime.bqn path/to/mlochbaum/BQN"!1≤≠args
|
||||
path←⊑•args
|
||||
@ -8,3 +9,4 @@ CC ← {𝕨 •FChars ⟨1,path,𝕩⟩ •Import "cc.bqn"}
|
||||
"src/gen/runtime0"CC"r0"
|
||||
"src/gen/runtime1"CC"r1"
|
||||
"src/gen/formatter"CC"f"
|
||||
"src/gen/customRuntime"•FChars""
|
||||
|
||||
@ -8,3 +8,4 @@ CC ← {𝕨 •FChars ⟨1,path,"-i",𝕩⟩ •Import "cc.bqn"}
|
||||
"src/gen/runtime0"CC"r0"
|
||||
"src/gen/runtime1"CC"r1"
|
||||
"src/gen/formatter"CC"f"
|
||||
"src/gen/customRuntime"•FChars""
|
||||
|
||||
@ -31,11 +31,11 @@ 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"
|
||||
../../src/gen/customRuntime:
|
||||
@echo "Copying precompiled bytecode from the bytecode branch"
|
||||
git checkout remotes/origin/bytecode ../../src/gen/{compiler,formatter,runtime0,runtime1,src}
|
||||
git reset ../../src/gen/{compiler,formatter,runtime0,runtime1,src}
|
||||
load.o: ../../src/gen/src
|
||||
load.o: ../../src/gen/customRuntime
|
||||
|
||||
base: load.o main.o rtwrap.o vm.o ns.o nfns.o
|
||||
%.o: ../../src/%.c
|
||||
|
||||
Loading…
Reference in New Issue
Block a user