• R/O
  • HTTP
  • SSH
  • HTTPS

common_source_project-fm7: Commit

Common Source Code Project for Qt (a.k.a for FM-7).


Commit MetaInfo

Revision6aa8fb941df05ad33d75529b4c987cd2e4f933a9 (tree)
Time2019-01-12 17:35:36
AuthorK.Ohta <whatisthis.sowhat@gmai...>
CommiterK.Ohta

Log Message

[BUILD] Separate threads definition for LTO.

Change Summary

Incremental Difference

--- a/source/build-cmake/buildvars.dat.tmpl
+++ b/source/build-cmake/buildvars.dat.tmpl
@@ -23,6 +23,8 @@ USE_RADICAL_OPTIMIZE="Yes"
2323 USE_COMMON_DEVICE_LIB="Yes"
2424 # "No" or "Yes"
2525 USE_WHOLE_PROGRAM_OPTIMIZE="No"
26+# Threads when using LTO.
27+LTO_THREADS=6
2628
2729 # "No" or "Yes"
2830 USE_OPENMP="No"
--- a/source/build-cmake/buildvars_mingw_cross_win32.dat.tmpl
+++ b/source/build-cmake/buildvars_mingw_cross_win32.dat.tmpl
@@ -17,6 +17,8 @@ LOCAL_ARCH_TYPE="SSE2"
1717 USE_LTO="Yes"
1818 # "No" or "Yes"
1919 USE_WHOLE_PROGRAM_OPTIMIZE="Yes"
20+# Threads when using LTO.
21+LTO_THREADS=12
2022
2123 # No" or "Yes"
2224 STRIP_SYMBOLS="Yes"
--- a/source/build-cmake/params/buildvars_linux_params_gcc.dat
+++ b/source/build-cmake/params/buildvars_linux_params_gcc.dat
@@ -136,7 +136,7 @@ esac
136136
137137 case ${USE_LTO} in
138138 "Yes" | "yes" | "YES" )
139- MAKEFLAGS_LINK_BASE2="-flto=6 -flto-compression-level=9 ${LTO_FLAGS} ${MAKEFLAGS_BASE2}"
139+ MAKEFLAGS_LINK_BASE2="-flto=${LTO_THREADS} -flto-compression-level=9 ${LTO_FLAGS} ${MAKEFLAGS_BASE2}"
140140 MAKEFLAGS_BASE2="-flto -flto-compression-level=9 -ffat-lto-objects ${MAKEFLAGS_BASE2}"
141141 ;;
142142 "No" | "no" | "NO" | * )
--- a/source/build-cmake/params/buildvars_mingw_params_gcc.dat
+++ b/source/build-cmake/params/buildvars_mingw_params_gcc.dat
@@ -88,7 +88,7 @@ esac
8888
8989 case ${USE_LTO} in
9090 "Yes" | "yes" | "YES" )
91- MAKEFLAGS_LINK_BASE="-flto ${LTO_FLAGS} ${MAKEFLAGS_BASE2}"
91+ MAKEFLAGS_LINK_BASE="-flto=${LTO_THREADS} ${LTO_FLAGS} ${MAKEFLAGS_BASE2}"
9292 MAKEFLAGS_BASE2="-flto -ffat-lto-objects ${MAKEFLAGS_BASE2}"
9393 ;;
9494 "No" | "no" | "NO" | * )
--- a/source/build-cmake/params/buildvars_mingw_params_llvm.dat
+++ b/source/build-cmake/params/buildvars_mingw_params_llvm.dat
@@ -119,7 +119,7 @@ esac
119119
120120 case ${USE_LTO} in
121121 "Yes" | "yes" | "YES" )
122- MAKEFLAGS_LINK_BASE2="-flto=6 ${LTO_FLAGS} ${MAKEFLAGS_BASE2}"
122+ MAKEFLAGS_LINK_BASE2="-flto=${LTO_THREADS} ${LTO_FLAGS} ${MAKEFLAGS_BASE2}"
123123 MAKEFLAGS_BASE2="-flto -ffat-lto-objects ${MAKEFLAGS_BASE2}"
124124 ;;
125125 "No" | "no" | "NO" | * )
Show on old repository browser