diff --git a/first.jai b/first.jai index e2f1005..e4e925e 100644 --- a/first.jai +++ b/first.jai @@ -8,7 +8,7 @@ Iprof :: #import "Iprof"(IMPORT_MODE = .METAPROGRAM); // Step 1. Compile shaders. { print("--- Shader Compile Step ---\n"); - process_result, output, error := run_command("bash", "./compile_shaders.sh", working_directory=tprint("%/src/shaders", #filepath)); + process_result, output, error := run_command("bash", ifx OS == .MACOS then "./compile_shaders_mac.sh" else "./compile_shaders.sh", working_directory=tprint("%/src/shaders", #filepath)); if process_result.exit_code != 0 { log_error("Shader compilation failed."); if output { @@ -136,7 +136,7 @@ Iprof :: #import "Iprof"(IMPORT_MODE = .METAPROGRAM); opts.cpu_target = root_opts.cpu_target; opts.os_target = root_opts.os_target; - opts.backend = ifx releaseBuild then .LLVM else .X64; + opts.backend = ifx (releaseBuild || OS == .MACOS) then .LLVM else .X64; opts.output_executable_name = root_opts.output_executable_name; set_build_options(opts, w); diff --git a/modules/stb_image/macos/stb_image.a b/modules/stb_image/macos/stb_image.a new file mode 100644 index 0000000..2003d88 Binary files /dev/null and b/modules/stb_image/macos/stb_image.a differ diff --git a/modules/stb_image/macos/stb_image.dylib b/modules/stb_image/macos/stb_image.dylib new file mode 100644 index 0000000..19972f7 Binary files /dev/null and b/modules/stb_image/macos/stb_image.dylib differ diff --git a/src/arbtri.jai b/src/arbtri.jai index 0f19b6b..922d6d5 100644 --- a/src/arbtri.jai +++ b/src/arbtri.jai @@ -104,7 +104,7 @@ arb_tri_flush :: () { flush_arb_commands(); } -debug_arb_flush : bool : true; +debug_arb_flush : bool : false; layer : s32 = 0;