Преглед изворни кода

Intel/Classic: deactivate linker dependency file support

The Intel Classic compilers' IPO plugins do not support the
`-Wl,--dependency-file,...` linker flag.

Fixes: #26483
Marc Chevrier пре 1 година
родитељ
комит
aeaec06267
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      Modules/Compiler/Intel.cmake

+ 3 - 0
Modules/Compiler/Intel.cmake

@@ -30,6 +30,9 @@ else()
     string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3")
     string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
 
+    # Compiler + IPO does not recognize --dependency-file link option
+    set(CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED FALSE)
+
     if("${lang}" STREQUAL "CXX")
       set(CMAKE_${lang}_COMPILER_PREDEFINES_COMMAND "${CMAKE_${lang}_COMPILER}")
       if(CMAKE_${lang}_COMPILER_ARG1)