From 4d1fffcc029a2f43db2a26c4f4c88192896f372c Mon Sep 17 00:00:00 2001 From: doyle Date: Mon, 27 Nov 2023 00:13:04 +1100 Subject: [PATCH] build: Fix sokol_audio outputting .obj file --- feely_pona_build.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/feely_pona_build.cpp b/feely_pona_build.cpp index 627f4a2..8be7221 100644 --- a/feely_pona_build.cpp +++ b/feely_pona_build.cpp @@ -335,6 +335,7 @@ int main(int argc, char const **argv) DQN_DEFER { sokol_audio_pc_timings[1] = Dqn_OS_PerfCounterNow(); }; + Dqn_Str8 output_file = Dqn_Str8_InitF(scratch.allocator, "sokol_audio.%s", msvc_build ? "obj" : "o"); Dqn_CPPBuildContext build_context = {}; build_context.flags_style = flags_style; build_context.compile_files = Dqn_Slice_InitCArray(scratch.arena, { @@ -342,10 +343,11 @@ int main(int argc, char const **argv) {}, // Prefix flags {}, // Suffix flags sokol_audio_source_code_file, + output_file, }, }); - Dqn_FArray_AddAssert(&sokol_audio_pc_output_files, Dqn_Str8_InitF(scratch.allocator, "sokol_audio.%s", msvc_build ? "obj" : "o")); + Dqn_FArray_AddAssert(&sokol_audio_pc_output_files, output_file); Dqn_FArray32 compile_flags = common_compile_flags; Dqn_FArray_AddAssert(&compile_flags, DQN_STR8("-c"));