init
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#run {
|
||||
w := compiler_create_workspace();
|
||||
bo := get_build_options(w);
|
||||
|
||||
bo.output_executable_name = "metaballs";
|
||||
args := bo.compile_time_command_line;
|
||||
for arg : args {
|
||||
if arg == "-release" {
|
||||
set_optimization(*bo, .OPTIMIZED);
|
||||
bo.stack_trace = false;
|
||||
}
|
||||
}
|
||||
|
||||
import_paths: [..]string;
|
||||
for bo.import_path array_add(*import_paths, it);
|
||||
array_add(*import_paths, "libs");
|
||||
bo.import_path = import_paths;
|
||||
|
||||
set_build_options(bo, w);
|
||||
add_build_file("main.jai", w);
|
||||
|
||||
set_build_options_dc(.{do_output=false});
|
||||
}
|
||||
|
||||
#import "Basic";
|
||||
#import "Compiler";
|
||||
Reference in New Issue
Block a user