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