forked from rezich/SQLite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverview.jai
32 lines (25 loc) · 864 Bytes
/
overview.jai
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
OUTPUT_NAME :: "overview";
OUTPUT_PATH :: "bin";
ENTRY_POINT :: "src/Main.jai";
#run {
w := compiler_create_workspace(OUTPUT_NAME);
if !w { print("Workspace creation failed.\n"); return; }
options := get_build_options(w);
options.output_executable_name = OUTPUT_NAME;
options.output_path = OUTPUT_PATH;
options.text_output_flags = 0;
set_build_options(options, w);
compiler_begin_intercept(w);
add_build_file(ENTRY_POINT, w);
SQL.prebuild_step(w);
while true {
message := compiler_wait_for_message();
if !message || message.kind == .COMPLETE then break;
SQL.build_step(message);
}
compiler_end_intercept(w);
set_build_options_dc(.{do_output=false, write_added_strings=false});
}
#import "Basic";
#import "Compiler";
SQL :: #import,dir "../../../SQLite"(FROM_METAPROGRAM=true);