build: Fix sokol_audio outputting .obj file

This commit is contained in:
doyle 2023-11-27 00:13:04 +11:00
parent 8663f1b73c
commit 4d1fffcc02

View File

@ -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<Dqn_Str8> compile_flags = common_compile_flags;
Dqn_FArray_AddAssert(&compile_flags, DQN_STR8("-c"));