From 4af0ff6bcb48a832731c75ef0c10d4c78a987d55 Mon Sep 17 00:00:00 2001 From: Scott Carver Date: Sat, 28 Mar 2015 21:55:41 -0400 Subject: [PATCH] build: workaround for clang crash MultiFilt_next_kk crashes in the clang slp vectorizer, so disable for this file. I tried various re-arrangements of the operations in the LOOP blocks of that function, but none prevented the crash. --- source/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) 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 "")