OSDN Git Service

[cmake] Workaround for ICE caused by ICC IPO
authorStarg <starg@users.osdn.me>
Mon, 8 Mar 2021 13:42:02 +0000 (22:42 +0900)
committerStarg <starg@users.osdn.me>
Mon, 15 Mar 2021 15:26:48 +0000 (00:26 +0900)
interface/CMakeLists.txt
timidity/CMakeLists.txt

index a2b61d1..126ebc7 100644 (file)
@@ -154,3 +154,8 @@ add_library(
 
 add_dependencies(interface_w32gsyn UpdateTim41Version twsyn_bridge)
 target_compile_definitions(interface_w32gsyn PRIVATE -DIA_WINSYN -DIA_W32G_SYN -D__W32G__ -DTWSYNG32 -DTWSYNG32INI)
+
+if("${CMAKE_C_COMPILER_ID}" MATCHES "Intel")
+    # Workaround for xilink: error #10014: problem during multi-file optimization compilation (code 4)
+    set_source_files_properties(w32g_c.c PROPERTIES COMPILE_OPTIONS "/Qipo-")
+endif()
index 8e945ef..f57a332 100644 (file)
@@ -190,6 +190,11 @@ add_library(
     ../vorbis-tools/vorbiscomment/vcedit.h
 )
 
+if("${CMAKE_C_COMPILER_ID}" MATCHES "Intel")
+    # Workaround for xilink: error #10014: problem during multi-file optimization compilation (code 4)
+    set_source_files_properties(ecw.cpp effect.c PROPERTIES COMPILE_OPTIONS "/Qipo-")
+endif()
+
 set(
     TIMIDITY_COMMON_LIBS