diff --git a/genRuntime b/genRuntime index 910165a7..16c98b92 100755 --- a/genRuntime +++ b/genRuntime @@ -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"" diff --git a/genRuntimeSrc b/genRuntimeSrc index fd919f03..48a06c43 100755 --- a/genRuntimeSrc +++ b/genRuntimeSrc @@ -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"" diff --git a/obj/subMakefile b/obj/subMakefile index ef59c2bb..57f4db65 100644 --- a/obj/subMakefile +++ b/obj/subMakefile @@ -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