13 lines
441 B
Plaintext
Executable File
13 lines
441 B
Plaintext
Executable File
#!/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
|
||
CC ← {𝕨 •FChars ⟨1,path,𝕩⟩ •Import "cc.bqn"}
|
||
"src/gen/src" •FChars "#define RT_SRC 0"∾@+10
|
||
"src/gen/compiler"CC"c"
|
||
"src/gen/runtime0"CC"r0"
|
||
"src/gen/runtime1"CC"r1"
|
||
"src/gen/formatter"CC"f"
|
||
"src/gen/customRuntime"•FChars""
|