From 213c99a2bb5a0061a2fae0533616f9547bfe0832 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 31 Jan 2026 14:26:36 +0100 Subject: fix: Resolve macOS build breakage and restore tools audio support Updates gpu.cc to handle modern wgpu-native callback signatures (5 args) for macOS while maintaining Windows compatibility. Modifies audio.cc and CMakeLists.txt to ensure miniaudio encoding features are only stripped from the demo binary, not the tools (spectool/tests). --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index d25065c..b793b05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -220,6 +220,7 @@ if(DEMO_BUILD_TESTS) ${WGPU_INCLUDE_DIR} third_party/glfw3webgpu ) + target_compile_definitions(test_spectool PRIVATE DEMO_BUILD_TOOLS) target_link_libraries(test_spectool PRIVATE ${DEMO_LIBS}) add_test(NAME SpectoolEndToEndTest COMMAND test_spectool) @@ -255,6 +256,7 @@ if(DEMO_BUILD_TOOLS OR DEMO_BUILD_TESTS) ${WGPU_INCLUDE_DIR} third_party/glfw3webgpu ) + target_compile_definitions(spectool PRIVATE DEMO_BUILD_TOOLS) target_link_libraries(spectool PRIVATE ${DEMO_LIBS}) add_executable(specview -- cgit v1.2.3