working mac build!

This commit is contained in:
Tuomas Katajisto 2025-08-28 17:15:30 +03:00
parent 2fa7506785
commit 784293bf89
4 changed files with 3 additions and 3 deletions

View File

@ -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);

Binary file not shown.

Binary file not shown.

View File

@ -104,7 +104,7 @@ arb_tri_flush :: () {
flush_arb_commands();
}
debug_arb_flush : bool : true;
debug_arb_flush : bool : false;
layer : s32 = 0;