diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index e3b1546273..e3f1b54e0f 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -124,6 +124,12 @@ set(PLUGIN_DIRS_EXTRA TJUGens ) +if (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang" AND ${CMAKE_CXX_COMPILER_VERSION} MATCHES "6.0.0.6000056") + set(BHOBFILT_CPP "${CMAKE_CURRENT_SOURCE_DIR}/BhobUGens/BhobFilt.cpp") + message(STATUS "Skipping vectorization on BhobFilt.cpp because of Clang bug. (${BHOBFILT_CPP})") + SET_SOURCE_FILES_PROPERTIES(${BHOBFILT_CPP} PROPERTIES COMPILE_FLAGS "-fno-slp-vectorize") +endif() + set(plugins "") set(supernova_plugins "")