Skip to content

Commit

Permalink
build: workaround for clang crash
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
scztt committed Mar 29, 2015
1 parent 60bd231 commit 4af0ff6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 "")

Expand Down

0 comments on commit 4af0ff6

Please sign in to comment.