git: e220f4d788c2 - 2023Q3 - audio/noise-suppression-for-voice-lv2: Fix build on architectures where sanitizer isn't available

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 03 Sep 2023 22:32:17 UTC
The branch 2023Q3 has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e220f4d788c20ec3e8fe0e2e1031678ffa7012bc

commit e220f4d788c20ec3e8fe0e2e1031678ffa7012bc
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-08-17 05:38:04 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-09-03 22:32:14 +0000

    audio/noise-suppression-for-voice-lv2: Fix build on architectures where sanitizer isn't available
    
    Reported by:    fallout
    
    (cherry picked from commit f6a15156b78084c6a1157900410c808ed228133f)
---
 .../files/patch-src_common_CMakeLists.txt                 | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/audio/noise-suppression-for-voice-lv2/files/patch-src_common_CMakeLists.txt b/audio/noise-suppression-for-voice-lv2/files/patch-src_common_CMakeLists.txt
new file mode 100644
index 000000000000..79042b6a7a1a
--- /dev/null
+++ b/audio/noise-suppression-for-voice-lv2/files/patch-src_common_CMakeLists.txt
@@ -0,0 +1,15 @@
+- fix build on platforms where sanitizer isn't available: armv7, aarch64, ...
+
+--- src/common/CMakeLists.txt.orig	2023-08-17 05:30:38 UTC
++++ src/common/CMakeLists.txt
+@@ -33,8 +33,8 @@ if (BUILD_TESTS)
+             $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/external/catch2>
+             $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
+     target_link_libraries(common_plugin_tests PRIVATE ${LIBRARIES})
+-    target_compile_options(common_plugin_tests PRIVATE -fsanitize=undefined)
+-    target_link_options(common_plugin_tests PRIVATE -fsanitize=undefined)
++    #target_compile_options(common_plugin_tests PRIVATE -fsanitize=undefined)
++    #target_link_options(common_plugin_tests PRIVATE -fsanitize=undefined)
+ 
+     include(CTest)
+     include(Catch)