working mac build!
This commit is contained in:
parent
2fa7506785
commit
784293bf89
@ -8,7 +8,7 @@ Iprof :: #import "Iprof"(IMPORT_MODE = .METAPROGRAM);
|
|||||||
// Step 1. Compile shaders.
|
// Step 1. Compile shaders.
|
||||||
{
|
{
|
||||||
print("--- Shader Compile Step ---\n");
|
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 {
|
if process_result.exit_code != 0 {
|
||||||
log_error("Shader compilation failed.");
|
log_error("Shader compilation failed.");
|
||||||
if output {
|
if output {
|
||||||
@ -136,7 +136,7 @@ Iprof :: #import "Iprof"(IMPORT_MODE = .METAPROGRAM);
|
|||||||
|
|
||||||
opts.cpu_target = root_opts.cpu_target;
|
opts.cpu_target = root_opts.cpu_target;
|
||||||
opts.os_target = root_opts.os_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;
|
opts.output_executable_name = root_opts.output_executable_name;
|
||||||
|
|
||||||
set_build_options(opts, w);
|
set_build_options(opts, w);
|
||||||
|
|||||||
BIN
modules/stb_image/macos/stb_image.a
Normal file
BIN
modules/stb_image/macos/stb_image.a
Normal file
Binary file not shown.
BIN
modules/stb_image/macos/stb_image.dylib
Normal file
BIN
modules/stb_image/macos/stb_image.dylib
Normal file
Binary file not shown.
@ -104,7 +104,7 @@ arb_tri_flush :: () {
|
|||||||
flush_arb_commands();
|
flush_arb_commands();
|
||||||
}
|
}
|
||||||
|
|
||||||
debug_arb_flush : bool : true;
|
debug_arb_flush : bool : false;
|
||||||
|
|
||||||
layer : s32 = 0;
|
layer : s32 = 0;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user