|
|
09b85a |
diff -Naur cmake-3.18.2.orig/Modules/Compiler/Absoft-Fortran.cmake cmake-3.18.2/Modules/Compiler/Absoft-Fortran.cmake
|
|
|
09b85a |
--- cmake-3.18.2.orig/Modules/Compiler/Absoft-Fortran.cmake 2020-09-08 13:30:51.134086928 +0000
|
|
|
09b85a |
+++ cmake-3.18.2/Modules/Compiler/Absoft-Fortran.cmake 2020-09-10 08:44:13.788373968 +0000
|
|
|
bc5d70 |
@@ -1,7 +1,7 @@
|
|
|
bc5d70 |
string(APPEND CMAKE_Fortran_FLAGS_INIT " ")
|
|
|
bc5d70 |
string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g")
|
|
|
bc5d70 |
string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " ")
|
|
|
bc5d70 |
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")
|
|
|
bc5d70 |
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2")
|
|
|
bc5d70 |
string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
|
|
|
bc5d70 |
set(CMAKE_Fortran_MODDIR_FLAG "-YMOD_OUT_DIR=")
|
|
|
bc5d70 |
set(CMAKE_Fortran_MODPATH_FLAG "-p")
|
|
|
09b85a |
diff -Naur cmake-3.18.2.orig/Modules/Compiler/G95-Fortran.cmake cmake-3.18.2/Modules/Compiler/G95-Fortran.cmake
|
|
|
09b85a |
--- cmake-3.18.2.orig/Modules/Compiler/G95-Fortran.cmake 2020-09-08 13:30:51.136086957 +0000
|
|
|
09b85a |
+++ cmake-3.18.2/Modules/Compiler/G95-Fortran.cmake 2020-09-10 08:44:22.991490916 +0000
|
|
|
bc5d70 |
@@ -1,7 +1,7 @@
|
|
|
bc5d70 |
string(APPEND CMAKE_Fortran_FLAGS_INIT " ")
|
|
|
bc5d70 |
string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g")
|
|
|
bc5d70 |
string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -Os")
|
|
|
bc5d70 |
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")
|
|
|
bc5d70 |
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2")
|
|
|
bc5d70 |
string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
|
|
|
bc5d70 |
set(CMAKE_Fortran_MODDIR_FLAG "-fmod=")
|
|
|
bc5d70 |
set(CMAKE_Fortran_VERBOSE_FLAG "-v")
|
|
|
09b85a |
diff -Naur cmake-3.18.2.orig/Modules/Compiler/GNU-Fortran.cmake cmake-3.18.2/Modules/Compiler/GNU-Fortran.cmake
|
|
|
09b85a |
--- cmake-3.18.2.orig/Modules/Compiler/GNU-Fortran.cmake 2020-09-08 13:30:51.137086972 +0000
|
|
|
09b85a |
+++ cmake-3.18.2/Modules/Compiler/GNU-Fortran.cmake 2020-09-10 08:44:10.635333901 +0000
|
|
|
09b85a |
@@ -19,7 +19,7 @@
|
|
|
bc5d70 |
|
|
|
bc5d70 |
# No -DNDEBUG for Fortran.
|
|
|
bc5d70 |
string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -Os")
|
|
|
bc5d70 |
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")
|
|
|
bc5d70 |
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2")
|
|
|
bc5d70 |
|
|
|
bc5d70 |
# No -isystem for Fortran because it will not find .mod files.
|
|
|
bc5d70 |
unset(CMAKE_INCLUDE_SYSTEM_FLAG_Fortran)
|
|
|
09b85a |
diff -Naur cmake-3.18.2.orig/Modules/Compiler/GNU.cmake cmake-3.18.2/Modules/Compiler/GNU.cmake
|
|
|
09b85a |
--- cmake-3.18.2.orig/Modules/Compiler/GNU.cmake 2020-09-08 13:30:51.137086972 +0000
|
|
|
09b85a |
+++ cmake-3.18.2/Modules/Compiler/GNU.cmake 2020-09-10 08:44:38.939693578 +0000
|
|
|
09b85a |
@@ -56,7 +56,7 @@
|
|
|
bc5d70 |
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
|
|
|
bc5d70 |
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g")
|
|
|
bc5d70 |
string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG")
|
|
|
bc5d70 |
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
|
|
|
bc5d70 |
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2 -DNDEBUG")
|
|
|
bc5d70 |
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
|
|
|
bc5d70 |
set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
|
|
bc5d70 |
set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
|
|
|
09b85a |
diff -Naur cmake-3.18.2.orig/Modules/Compiler/Intel.cmake cmake-3.18.2/Modules/Compiler/Intel.cmake
|
|
|
09b85a |
--- cmake-3.18.2.orig/Modules/Compiler/Intel.cmake 2020-09-08 13:30:51.138086986 +0000
|
|
|
09b85a |
+++ cmake-3.18.2/Modules/Compiler/Intel.cmake 2020-09-10 08:44:25.749525964 +0000
|
|
|
09b85a |
@@ -22,7 +22,7 @@
|
|
|
bc5d70 |
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
|
|
|
bc5d70 |
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g")
|
|
|
bc5d70 |
string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os")
|
|
|
bc5d70 |
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3")
|
|
|
bc5d70 |
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2")
|
|
|
bc5d70 |
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
|
|
|
bc5d70 |
|
|
|
09b85a |
set(CMAKE_${lang}_COMPILER_PREDEFINES_COMMAND "${CMAKE_${lang}_COMPILER}")
|
|
|
09b85a |
diff -Naur cmake-3.18.2.orig/Modules/Compiler/NVIDIA-CUDA.cmake cmake-3.18.2/Modules/Compiler/NVIDIA-CUDA.cmake
|
|
|
09b85a |
--- cmake-3.18.2.orig/Modules/Compiler/NVIDIA-CUDA.cmake 2020-09-08 13:30:51.138086986 +0000
|
|
|
09b85a |
+++ cmake-3.18.2/Modules/Compiler/NVIDIA-CUDA.cmake 2020-09-10 08:44:19.672448740 +0000
|
|
|
09b85a |
@@ -39,7 +39,7 @@
|
|
|
bc5d70 |
set(CMAKE_SHARED_LIBRARY_CUDA_FLAGS -fPIC)
|
|
|
bc5d70 |
string(APPEND CMAKE_CUDA_FLAGS_INIT " ")
|
|
|
bc5d70 |
string(APPEND CMAKE_CUDA_FLAGS_DEBUG_INIT " -g")
|
|
|
bc5d70 |
- string(APPEND CMAKE_CUDA_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
|
|
|
bc5d70 |
+ string(APPEND CMAKE_CUDA_FLAGS_RELEASE_INIT " -O2 -DNDEBUG")
|
|
|
bc5d70 |
string(APPEND CMAKE_CUDA_FLAGS_MINSIZEREL_INIT " -O1 -DNDEBUG")
|
|
|
bc5d70 |
string(APPEND CMAKE_CUDA_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
|
|
|
bc5d70 |
endif()
|
|
|
09b85a |
diff -Naur cmake-3.18.2.orig/Modules/Compiler/PGI.cmake cmake-3.18.2/Modules/Compiler/PGI.cmake
|
|
|
09b85a |
--- cmake-3.18.2.orig/Modules/Compiler/PGI.cmake 2020-09-08 13:30:51.138086986 +0000
|
|
|
09b85a |
+++ cmake-3.18.2/Modules/Compiler/PGI.cmake 2020-09-10 08:44:32.995618043 +0000
|
|
|
09b85a |
@@ -18,7 +18,7 @@
|
|
|
bc5d70 |
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
|
|
|
bc5d70 |
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -O0")
|
|
|
bc5d70 |
string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -O2 -s")
|
|
|
bc5d70 |
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -fast -O3")
|
|
|
bc5d70 |
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -fast -O2")
|
|
|
bc5d70 |
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -gopt")
|
|
|
bc5d70 |
|
|
|
bc5d70 |
if(CMAKE_HOST_WIN32)
|
|
|
09b85a |
diff -Naur cmake-3.18.2.orig/Modules/Compiler/PathScale.cmake cmake-3.18.2/Modules/Compiler/PathScale.cmake
|
|
|
09b85a |
--- cmake-3.18.2.orig/Modules/Compiler/PathScale.cmake 2020-09-08 13:30:51.138086986 +0000
|
|
|
09b85a |
+++ cmake-3.18.2/Modules/Compiler/PathScale.cmake 2020-09-10 08:44:16.715411163 +0000
|
|
|
09b85a |
@@ -16,6 +16,6 @@
|
|
|
09b85a |
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
|
|
|
09b85a |
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -O0")
|
|
|
09b85a |
string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os")
|
|
|
09b85a |
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3")
|
|
|
09b85a |
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2")
|
|
|
09b85a |
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -g -O2")
|
|
|
09b85a |
endmacro()
|
|
|
09b85a |
diff -Naur cmake-3.18.2.orig/Modules/Platform/HP-UX-HP-CXX.cmake cmake-3.18.2/Modules/Platform/HP-UX-HP-CXX.cmake
|
|
|
09b85a |
--- cmake-3.18.2.orig/Modules/Platform/HP-UX-HP-CXX.cmake 2020-09-08 13:30:51.182087632 +0000
|
|
|
09b85a |
+++ cmake-3.18.2/Modules/Platform/HP-UX-HP-CXX.cmake 2020-09-10 08:44:00.226201627 +0000
|
|
|
09b85a |
@@ -9,6 +9,6 @@
|
|
|
09b85a |
)
|
|
|
bc5d70 |
|
|
|
bc5d70 |
string(APPEND CMAKE_CXX_FLAGS_DEBUG_INIT " -g")
|
|
|
09b85a |
-string(APPEND CMAKE_CXX_FLAGS_MINSIZEREL_INIT " +O3 -DNDEBUG")
|
|
|
09b85a |
+string(APPEND CMAKE_CXX_FLAGS_MINSIZEREL_INIT " +O2 -DNDEBUG")
|
|
|
09b85a |
string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " +O2 -DNDEBUG")
|
|
|
09b85a |
string(APPEND CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT " -g")
|
|
|
09b85a |
diff -Naur cmake-3.18.2.orig/Modules/Platform/Windows-Clang.cmake cmake-3.18.2/Modules/Platform/Windows-Clang.cmake
|
|
|
09b85a |
--- cmake-3.18.2.orig/Modules/Platform/Windows-Clang.cmake 2020-09-08 13:30:51.185087676 +0000
|
|
|
09b85a |
+++ cmake-3.18.2/Modules/Platform/Windows-Clang.cmake 2020-09-10 08:44:07.269291127 +0000
|
|
|
09b85a |
@@ -79,7 +79,7 @@
|
|
|
bc5d70 |
|
|
|
09b85a |
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -Xclang -gcodeview -O0 ${__ADDED_FLAGS_DEBUG}")
|
|
|
09b85a |
string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG ${__ADDED_FLAGS}")
|
|
|
09b85a |
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3 -DNDEBUG ${__ADDED_FLAGS}")
|
|
|
09b85a |
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2 -DNDEBUG ${__ADDED_FLAGS}")
|
|
|
09b85a |
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG -Xclang -gcodeview ${__ADDED_FLAGS}")
|
|
|
09b85a |
endif()
|
|
|
09b85a |
set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ")
|