|
|
411bbd |
commit b247220ae5a91d8057fd57b5f6e50c93b168dc17
|
|
|
411bbd |
Author: Björn Esser <besser82@fedoraproject.org>
|
|
|
411bbd |
Date: Mon Jul 24 01:52:06 2017 +0200
|
|
|
411bbd |
|
|
|
411bbd |
Set optimization for RELEASE to Fedora default
|
|
|
411bbd |
|
|
|
411bbd |
Index: cmake-3.10.0/Modules/Compiler/Absoft-Fortran.cmake
|
|
|
411bbd |
===================================================================
|
|
|
411bbd |
--- cmake-3.10.0.orig/Modules/Compiler/Absoft-Fortran.cmake
|
|
|
411bbd |
+++ cmake-3.10.0/Modules/Compiler/Absoft-Fortran.cmake
|
|
|
411bbd |
@@ -1,7 +1,7 @@
|
|
|
411bbd |
string(APPEND CMAKE_Fortran_FLAGS_INIT " ")
|
|
|
411bbd |
string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g")
|
|
|
411bbd |
string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " ")
|
|
|
411bbd |
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")
|
|
|
411bbd |
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2")
|
|
|
411bbd |
string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
|
|
|
411bbd |
set(CMAKE_Fortran_MODDIR_FLAG "-YMOD_OUT_DIR=")
|
|
|
411bbd |
set(CMAKE_Fortran_MODPATH_FLAG "-p")
|
|
|
411bbd |
Index: cmake-3.10.0/Modules/Compiler/G95-Fortran.cmake
|
|
|
411bbd |
===================================================================
|
|
|
411bbd |
--- cmake-3.10.0.orig/Modules/Compiler/G95-Fortran.cmake
|
|
|
411bbd |
+++ cmake-3.10.0/Modules/Compiler/G95-Fortran.cmake
|
|
|
411bbd |
@@ -1,7 +1,7 @@
|
|
|
411bbd |
string(APPEND CMAKE_Fortran_FLAGS_INIT " ")
|
|
|
411bbd |
string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g")
|
|
|
411bbd |
string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -Os")
|
|
|
411bbd |
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")
|
|
|
411bbd |
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2")
|
|
|
411bbd |
string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
|
|
|
411bbd |
set(CMAKE_Fortran_MODDIR_FLAG "-fmod=")
|
|
|
411bbd |
set(CMAKE_Fortran_VERBOSE_FLAG "-v")
|
|
|
411bbd |
Index: cmake-3.10.0/Modules/Compiler/GNU-Fortran.cmake
|
|
|
411bbd |
===================================================================
|
|
|
411bbd |
--- cmake-3.10.0.orig/Modules/Compiler/GNU-Fortran.cmake
|
|
|
411bbd |
+++ cmake-3.10.0/Modules/Compiler/GNU-Fortran.cmake
|
|
|
411bbd |
@@ -11,7 +11,7 @@ set(CMAKE_Fortran_POSTPROCESS_FLAG "-fpr
|
|
|
411bbd |
|
|
|
411bbd |
# No -DNDEBUG for Fortran.
|
|
|
411bbd |
string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -Os")
|
|
|
411bbd |
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")
|
|
|
411bbd |
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2")
|
|
|
411bbd |
|
|
|
411bbd |
# No -isystem for Fortran because it will not find .mod files.
|
|
|
411bbd |
unset(CMAKE_INCLUDE_SYSTEM_FLAG_Fortran)
|
|
|
411bbd |
Index: cmake-3.10.0/Modules/Compiler/GNU.cmake
|
|
|
411bbd |
===================================================================
|
|
|
411bbd |
--- cmake-3.10.0.orig/Modules/Compiler/GNU.cmake
|
|
|
411bbd |
+++ cmake-3.10.0/Modules/Compiler/GNU.cmake
|
|
|
411bbd |
@@ -40,7 +40,7 @@ macro(__compiler_gnu lang)
|
|
|
411bbd |
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
|
|
|
411bbd |
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g")
|
|
|
411bbd |
string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG")
|
|
|
411bbd |
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
|
|
|
411bbd |
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2 -DNDEBUG")
|
|
|
411bbd |
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
|
|
|
411bbd |
set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
|
|
411bbd |
set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
|
|
|
411bbd |
Index: cmake-3.10.0/Modules/Compiler/Intel.cmake
|
|
|
411bbd |
===================================================================
|
|
|
411bbd |
--- cmake-3.10.0.orig/Modules/Compiler/Intel.cmake
|
|
|
411bbd |
+++ cmake-3.10.0/Modules/Compiler/Intel.cmake
|
|
|
411bbd |
@@ -22,7 +22,7 @@ else()
|
|
|
411bbd |
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
|
|
|
411bbd |
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g")
|
|
|
411bbd |
string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os")
|
|
|
411bbd |
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3")
|
|
|
411bbd |
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2")
|
|
|
411bbd |
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
|
|
|
411bbd |
|
|
|
411bbd |
set(CMAKE_${lang}_COMPILER_PREDEFINES_COMMAND "${CMAKE_${lang}_COMPILER}" "-QdM" "-P" "-Za" "${CMAKE_ROOT}/Modules/CMakeCXXCompilerABI.cpp")
|
|
|
411bbd |
Index: cmake-3.10.0/Modules/Compiler/NVIDIA-CUDA.cmake
|
|
|
411bbd |
===================================================================
|
|
|
411bbd |
--- cmake-3.10.0.orig/Modules/Compiler/NVIDIA-CUDA.cmake
|
|
|
411bbd |
+++ cmake-3.10.0/Modules/Compiler/NVIDIA-CUDA.cmake
|
|
|
411bbd |
@@ -9,7 +9,7 @@ if(NOT "x${CMAKE_CUDA_SIMULATE_ID}" STRE
|
|
|
411bbd |
set(CMAKE_SHARED_LIBRARY_CUDA_FLAGS -fPIC)
|
|
|
411bbd |
string(APPEND CMAKE_CUDA_FLAGS_INIT " ")
|
|
|
411bbd |
string(APPEND CMAKE_CUDA_FLAGS_DEBUG_INIT " -g")
|
|
|
411bbd |
- string(APPEND CMAKE_CUDA_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
|
|
|
411bbd |
+ string(APPEND CMAKE_CUDA_FLAGS_RELEASE_INIT " -O2 -DNDEBUG")
|
|
|
411bbd |
string(APPEND CMAKE_CUDA_FLAGS_MINSIZEREL_INIT " -O1 -DNDEBUG")
|
|
|
411bbd |
string(APPEND CMAKE_CUDA_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
|
|
|
411bbd |
endif()
|
|
|
411bbd |
Index: cmake-3.10.0/Modules/Compiler/PathScale.cmake
|
|
|
411bbd |
===================================================================
|
|
|
411bbd |
--- cmake-3.10.0.orig/Modules/Compiler/PathScale.cmake
|
|
|
411bbd |
+++ cmake-3.10.0/Modules/Compiler/PathScale.cmake
|
|
|
411bbd |
@@ -16,6 +16,6 @@ macro(__compiler_pathscale lang)
|
|
|
411bbd |
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
|
|
|
411bbd |
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -O0")
|
|
|
411bbd |
string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os")
|
|
|
411bbd |
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3")
|
|
|
411bbd |
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2")
|
|
|
411bbd |
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -g -O2")
|
|
|
411bbd |
endmacro()
|
|
|
411bbd |
Index: cmake-3.10.0/Modules/Platform/IRIX.cmake
|
|
|
411bbd |
===================================================================
|
|
|
411bbd |
--- cmake-3.10.0.orig/Modules/Platform/IRIX.cmake
|
|
|
411bbd |
+++ cmake-3.10.0/Modules/Platform/IRIX.cmake
|
|
|
411bbd |
@@ -7,7 +7,7 @@ if(NOT CMAKE_COMPILER_IS_GNUCXX)
|
|
|
411bbd |
"<CMAKE_CXX_COMPILER> -ar -o <TARGET> <OBJECTS>")
|
|
|
411bbd |
set (CMAKE_CXX_FLAGS_INIT "")
|
|
|
411bbd |
set (CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
|
|
|
411bbd |
- set (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-O3 -DNDEBUG")
|
|
|
411bbd |
+ set (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-O2 -DNDEBUG")
|
|
|
411bbd |
set (CMAKE_CXX_FLAGS_RELEASE_INIT "-O2 -DNDEBUG")
|
|
|
411bbd |
set (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2")
|
|
|
411bbd |
set (CMAKE_C_FLAGS_INIT "")
|
|
|
411bbd |
Index: cmake-3.10.0/Modules/Platform/IRIX64.cmake
|
|
|
411bbd |
===================================================================
|
|
|
411bbd |
--- cmake-3.10.0.orig/Modules/Platform/IRIX64.cmake
|
|
|
411bbd |
+++ cmake-3.10.0/Modules/Platform/IRIX64.cmake
|
|
|
411bbd |
@@ -37,7 +37,7 @@ if(NOT CMAKE_COMPILER_IS_GNUCC)
|
|
|
411bbd |
set(CMAKE_CXX_CREATE_STATIC_LIBRARY
|
|
|
411bbd |
"<CMAKE_CXX_COMPILER> -ar -o <TARGET> <OBJECTS>")
|
|
|
411bbd |
set (CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
|
|
|
411bbd |
- set (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-O3 -DNDEBUG")
|
|
|
411bbd |
+ set (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-O2 -DNDEBUG")
|
|
|
411bbd |
set (CMAKE_CXX_FLAGS_RELEASE_INIT "-O2 -DNDEBUG")
|
|
|
411bbd |
set (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2")
|
|
|
411bbd |
endif()
|
|
|
411bbd |
Index: cmake-3.10.0/Modules/Compiler/PGI.cmake
|
|
|
411bbd |
===================================================================
|
|
|
411bbd |
--- cmake-3.10.0.orig/Modules/Compiler/PGI.cmake
|
|
|
411bbd |
+++ cmake-3.10.0/Modules/Compiler/PGI.cmake
|
|
|
411bbd |
@@ -18,7 +18,7 @@ macro(__compiler_pgi lang)
|
|
|
411bbd |
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
|
|
|
411bbd |
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -O0")
|
|
|
411bbd |
string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -O2 -s")
|
|
|
411bbd |
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -fast -O3")
|
|
|
411bbd |
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -fast -O2")
|
|
|
411bbd |
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -gopt")
|
|
|
411bbd |
|
|
|
411bbd |
if(CMAKE_HOST_WIN32)
|
|
|
411bbd |
Index: cmake-3.10.0/Modules/Compiler/SunPro-ASM.cmake
|
|
|
411bbd |
===================================================================
|
|
|
411bbd |
--- cmake-3.10.0.orig/Modules/Compiler/SunPro-ASM.cmake
|
|
|
411bbd |
+++ cmake-3.10.0/Modules/Compiler/SunPro-ASM.cmake
|
|
|
411bbd |
@@ -11,7 +11,7 @@ set(CMAKE_SHARED_LIBRARY_SONAME_ASM_FLAG
|
|
|
411bbd |
string(APPEND CMAKE_ASM_FLAGS_INIT " ")
|
|
|
411bbd |
string(APPEND CMAKE_ASM_FLAGS_DEBUG_INIT " -g")
|
|
|
411bbd |
string(APPEND CMAKE_ASM_FLAGS_MINSIZEREL_INIT " -xO2 -xspace -DNDEBUG")
|
|
|
411bbd |
-string(APPEND CMAKE_ASM_FLAGS_RELEASE_INIT " -xO3 -DNDEBUG")
|
|
|
411bbd |
+string(APPEND CMAKE_ASM_FLAGS_RELEASE_INIT " -xO2 -DNDEBUG")
|
|
|
411bbd |
string(APPEND CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT " -g -xO2 -DNDEBUG")
|
|
|
411bbd |
|
|
|
411bbd |
# Initialize ASM link type selection flags. These flags are used when
|
|
|
411bbd |
Index: cmake-3.10.0/Modules/Compiler/SunPro-C.cmake
|
|
|
411bbd |
===================================================================
|
|
|
411bbd |
--- cmake-3.10.0.orig/Modules/Compiler/SunPro-C.cmake
|
|
|
411bbd |
+++ cmake-3.10.0/Modules/Compiler/SunPro-C.cmake
|
|
|
411bbd |
@@ -15,7 +15,7 @@ set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "
|
|
|
411bbd |
string(APPEND CMAKE_C_FLAGS_INIT " ")
|
|
|
411bbd |
string(APPEND CMAKE_C_FLAGS_DEBUG_INIT " -g")
|
|
|
411bbd |
string(APPEND CMAKE_C_FLAGS_MINSIZEREL_INIT " -xO2 -xspace -DNDEBUG")
|
|
|
411bbd |
-string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " -xO3 -DNDEBUG")
|
|
|
411bbd |
+string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " -xO2 -DNDEBUG")
|
|
|
411bbd |
string(APPEND CMAKE_C_FLAGS_RELWITHDEBINFO_INIT " -g -xO2 -DNDEBUG")
|
|
|
411bbd |
|
|
|
411bbd |
# Initialize C link type selection flags. These flags are used when
|
|
|
411bbd |
Index: cmake-3.10.0/Modules/Compiler/SunPro-CXX.cmake
|
|
|
411bbd |
===================================================================
|
|
|
411bbd |
--- cmake-3.10.0.orig/Modules/Compiler/SunPro-CXX.cmake
|
|
|
411bbd |
+++ cmake-3.10.0/Modules/Compiler/SunPro-CXX.cmake
|
|
|
411bbd |
@@ -15,7 +15,7 @@ set(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG
|
|
|
411bbd |
string(APPEND CMAKE_CXX_FLAGS_INIT " ")
|
|
|
411bbd |
string(APPEND CMAKE_CXX_FLAGS_DEBUG_INIT " -g")
|
|
|
411bbd |
string(APPEND CMAKE_CXX_FLAGS_MINSIZEREL_INIT " -xO2 -xspace -DNDEBUG")
|
|
|
411bbd |
-string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " -xO3 -DNDEBUG")
|
|
|
411bbd |
+string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " -xO2 -DNDEBUG")
|
|
|
411bbd |
string(APPEND CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT " -g -xO2 -DNDEBUG")
|
|
|
411bbd |
|
|
|
411bbd |
# Initialize C link type selection flags. These flags are used when
|
|
|
411bbd |
Index: cmake-3.10.0/Modules/Compiler/SunPro-Fortran.cmake
|
|
|
411bbd |
===================================================================
|
|
|
411bbd |
--- cmake-3.10.0.orig/Modules/Compiler/SunPro-Fortran.cmake
|
|
|
411bbd |
+++ cmake-3.10.0/Modules/Compiler/SunPro-Fortran.cmake
|
|
|
411bbd |
@@ -13,7 +13,7 @@ set(CMAKE_EXECUTABLE_RUNTIME_Fortran_FLA
|
|
|
411bbd |
string(APPEND CMAKE_Fortran_FLAGS_INIT " ")
|
|
|
411bbd |
string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g")
|
|
|
411bbd |
string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -xO2 -xspace -DNDEBUG")
|
|
|
411bbd |
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -xO3 -DNDEBUG")
|
|
|
411bbd |
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -xO2 -DNDEBUG")
|
|
|
411bbd |
string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -g -xO2 -DNDEBUG")
|
|
|
411bbd |
set(CMAKE_Fortran_MODDIR_FLAG "-moddir=")
|
|
|
411bbd |
set(CMAKE_Fortran_MODPATH_FLAG "-M")
|