Logo

index : jinit

---

  • summary
  • about
  • tree
  • log
  • branches
<< path: root/public/jinit.git/html/templates/minimal/template.jai blob: afdd2ec1b3c11d81c0c2884239b1055f2078126e [raw] [clear marker]

        
0#import "Basic";
1#import "Compiler";
2#import "File";
3
4
5build :: () {
6 w := compiler_create_workspace();
7
8 if !w {
9 print("Workspace creation failed.\n");
10 return;
11 }
12
13 print("The workspace w is %\n", w);
14 make_directory_if_it_does_not_exist("bin");
15
16 target_options := get_build_options(w);
17 target_options.output_executable_name = "program";
18 target_options.output_path = "bin";
19
20 //import_path: [..] string;
21 //array_add(*import_path, ..target_options.import_path);
22 //array_add(*import_path, "custom_module_path");
23 //target_options.import_path = import_path;
24
25 set_build_options_dc(.{do_output = false});
26 set_build_options(target_options, w);
27 add_build_file(tprint("%src/main.jai", #filepath), w);
28}
29
30main :: () {}
31
32#run build();
33
34
Copyright 2026  E766CB298A6D1E64 | Git-Thing heavily inspired by cgit