Pārlūkot izejas kodu

Intel: Disable Fortran optimizations for Debug config on Windows (#15583)

The "/Od" flag is used for C and C++ languages in this configuration so
we should use it for Fortran too.

Suggested-by: Oleg V. Zhylin <[email protected]>
Brad King 10 gadi atpakaļ
vecāks
revīzija
bd2ef44b55
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Modules/Platform/Windows-Intel-Fortran.cmake

+ 1 - 1
Modules/Platform/Windows-Intel-Fortran.cmake

@@ -5,7 +5,7 @@ set(CMAKE_Fortran_MODDIR_FLAG "-module:")
 set(CMAKE_Fortran_STANDARD_LIBRARIES_INIT "user32.lib")
 __windows_compiler_intel(Fortran)
 set (CMAKE_Fortran_FLAGS_INIT "/W1 /nologo /fpp /libs:dll /threads")
-set (CMAKE_Fortran_FLAGS_DEBUG_INIT "/debug:full /dbglibs")
+set (CMAKE_Fortran_FLAGS_DEBUG_INIT "/Od /debug:full /dbglibs")
 set (CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "/O1 /D NDEBUG")
 set (CMAKE_Fortran_FLAGS_RELEASE_INIT "/O2 /D NDEBUG")
 set (CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "/O2 /debug:full /D NDEBUG")