Phasor 2.2.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
build.phs
Go to the documentation of this file.
1include_stdsys();
2include_stdio();
3include_stdstr();
4include_stdfile();
5include_stdtype();
6
7fn buildPHSB(input: string, output: string) -> bool {
8 var cmd = sb_new();
9 sb_append(cmd, "phasorcompiler --no-logo -o ");
10 sb_append(cmd, output);
11 sb_append(cmd, " ");
12 sb_append(cmd, input);
13 printf("Building Phasor Binary: %s -> %s\n", input, output);
14 return to_bool(sys_execute(sb_to_string(cmd)));
15}
16
17fcd("src/tools/extra/clocf");
18var src = "native/clocf.phs";
19var dst = "../../../../clocf.phsb";
20
21shutdown (!buildPHSB(src, dst));