From 030cbd6bfc585e1f4e38a953ca7ce856aa7ab086 Mon Sep 17 00:00:00 2001 From: tresf Date: Wed, 6 Dec 2017 14:37:38 -0500 Subject: [PATCH] Fix various LADSPA plugins for XCode 8.3 --- plugins/LadspaEffect/calf/veal | 2 +- plugins/LadspaEffect/swh/CMakeLists.txt | 5 ++++- plugins/LadspaEffect/tap/CMakeLists.txt | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/plugins/LadspaEffect/calf/veal b/plugins/LadspaEffect/calf/veal index 816b4d2b7cc..f2b6aeb7498 160000 --- a/plugins/LadspaEffect/calf/veal +++ b/plugins/LadspaEffect/calf/veal @@ -1 +1 @@ -Subproject commit 816b4d2b7cc20429faf96863d7e8ba1cda48ace8 +Subproject commit f2b6aeb749810d5ebc74f9ada72a9a45c55ad271 diff --git a/plugins/LadspaEffect/swh/CMakeLists.txt b/plugins/LadspaEffect/swh/CMakeLists.txt index 7860ee6cc66..d0fdec74cdd 100644 --- a/plugins/LadspaEffect/swh/CMakeLists.txt +++ b/plugins/LadspaEffect/swh/CMakeLists.txt @@ -17,8 +17,11 @@ ENDIF() # Additional compile flags SET(COMPILE_FLAGS "${COMPILE_FLAGS} -O3 -Wall") -SET(COMPILE_FLAGS "${COMPILE_FLAGS} -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fno-strict-aliasing") +SET(COMPILE_FLAGS "${COMPILE_FLAGS} -fomit-frame-pointer -funroll-loops -ffast-math -c -fno-strict-aliasing") SET(COMPILE_FLAGS "${COMPILE_FLAGS} ${PIC_FLAGS}") +IF(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang") + SET(COMPILE_FLAGS "${COMPILE_FLAGS} -fstrength-reduce") +ENDIF() # Loop over every XML file FILE(GLOB XML_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/ladspa/*.xml") diff --git a/plugins/LadspaEffect/tap/CMakeLists.txt b/plugins/LadspaEffect/tap/CMakeLists.txt index a8f444c3166..8be0d2e419f 100644 --- a/plugins/LadspaEffect/tap/CMakeLists.txt +++ b/plugins/LadspaEffect/tap/CMakeLists.txt @@ -1,7 +1,10 @@ INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/include") FILE(GLOB PLUGIN_SOURCES tap-plugins/*.c) LIST(SORT PLUGIN_SOURCES) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -Wno-write-strings -fomit-frame-pointer -fno-strict-aliasing -fstrength-reduce -funroll-loops -ffast-math") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -Wno-write-strings -fomit-frame-pointer -fno-strict-aliasing -funroll-loops -ffast-math") +IF(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang") + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstrength-reduce") +ENDIF() FOREACH(_item ${PLUGIN_SOURCES}) GET_FILENAME_COMPONENT(_plugin "${_item}" NAME_WE) ADD_LIBRARY("${_plugin}" MODULE "${_item}")