From 37891254f1460f22128d4e33f36fc167d8cd4482 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Sat, 23 Sep 2023 16:31:56 +0300 Subject: [PATCH] Fix build failures without SIMD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new mention of SIMDRegister here should be guarded on JUCE_USE_SIMD too, to fix the following build failures present on riscv64 and other platforms: ``` In file included from /build/juce/src/JUCE-7.0.7/modules/juce_dsp/juce_dsp.cpp:103: /build/juce/src/JUCE-7.0.7/modules/juce_dsp/containers/juce_AudioBlock_test.cpp:32:34: error: ‘SIMDRegister’ has not been declared 32 | String& operator<< (String& str, SIMDRegister) { return str; } | ^~~~~~~~~~~~ /build/juce/src/JUCE-7.0.7/modules/juce_dsp/containers/juce_AudioBlock_test.cpp:32:46: error: expected ‘,’ or ‘...’ before ‘<’ token 32 | String& operator<< (String& str, SIMDRegister) { return str; } | ^ ``` --- modules/juce_dsp/containers/juce_AudioBlock_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/juce_dsp/containers/juce_AudioBlock_test.cpp b/modules/juce_dsp/containers/juce_AudioBlock_test.cpp index bfd2f8aa486a..4b091bf34b2f 100644 --- a/modules/juce_dsp/containers/juce_AudioBlock_test.cpp +++ b/modules/juce_dsp/containers/juce_AudioBlock_test.cpp @@ -28,8 +28,10 @@ namespace juce namespace dsp { +#if JUCE_USE_SIMD template String& operator<< (String& str, SIMDRegister) { return str; } +#endif template class AudioBlockUnitTests : public UnitTest