[Cmake-commits] [cmake-commits] king committed Linux-Intel-C.cmake 1.4 1.5 Linux-Intel-CXX.cmake 1.6 1.7 Linux-Intel-Fortran.cmake 1.3 1.4

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Oct 2 13:52:14 EDT 2009


Update of /cvsroot/CMake/CMake/Modules/Platform
In directory public:/mounts/ram/cvs-serv16388/Modules/Platform

Modified Files:
	Linux-Intel-C.cmake Linux-Intel-CXX.cmake 
	Linux-Intel-Fortran.cmake 
Log Message:
Create INTERPROCEDURAL_OPTIMIZATION build feature

This commit creates target and directory properties to enable the Intel
interprocedural optimization support on Linux.  Enabling it adds the
compiler option '-ipo' and uses 'xiar' to create archives.

See issue #9615.


Index: Linux-Intel-C.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Linux-Intel-C.cmake,v
retrieving revision 1.4
retrieving revision 1.5
diff -C 2 -d -r1.4 -r1.5
*** Linux-Intel-C.cmake	1 Sep 2009 17:55:13 -0000	1.4
--- Linux-Intel-C.cmake	2 Oct 2009 17:52:12 -0000	1.5
***************
*** 1,5 ****
  INCLUDE(Platform/Linux-Intel)
  IF(XIAR)
!   SET(CMAKE_C_CREATE_STATIC_LIBRARY
      "${XIAR} cr <TARGET> <LINK_FLAGS> <OBJECTS> "
      "${XIAR} -s <TARGET> ")
--- 1,7 ----
  INCLUDE(Platform/Linux-Intel)
  IF(XIAR)
!   # INTERPROCEDURAL_OPTIMIZATION
!   SET(CMAKE_C_COMPILE_OPTIONS_IPO -ipo)
!   SET(CMAKE_C_CREATE_STATIC_LIBRARY_IPO
      "${XIAR} cr <TARGET> <LINK_FLAGS> <OBJECTS> "
      "${XIAR} -s <TARGET> ")

Index: Linux-Intel-Fortran.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Linux-Intel-Fortran.cmake,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** Linux-Intel-Fortran.cmake	1 Sep 2009 17:55:13 -0000	1.3
--- Linux-Intel-Fortran.cmake	2 Oct 2009 17:52:12 -0000	1.4
***************
*** 1,5 ****
  INCLUDE(Platform/Linux-Intel)
  IF(XIAR)
!   SET(CMAKE_Fortran_CREATE_STATIC_LIBRARY
      "${XIAR} cr <TARGET> <LINK_FLAGS> <OBJECTS> "
      "${XIAR} -s <TARGET> ")
--- 1,7 ----
  INCLUDE(Platform/Linux-Intel)
  IF(XIAR)
!   # INTERPROCEDURAL_OPTIMIZATION
!   SET(CMAKE_Fortran_COMPILE_OPTIONS_IPO -ipo)
!   SET(CMAKE_Fortran_CREATE_STATIC_LIBRARY_IPO
      "${XIAR} cr <TARGET> <LINK_FLAGS> <OBJECTS> "
      "${XIAR} -s <TARGET> ")

Index: Linux-Intel-CXX.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Linux-Intel-CXX.cmake,v
retrieving revision 1.6
retrieving revision 1.7
diff -C 2 -d -r1.6 -r1.7
*** Linux-Intel-CXX.cmake	1 Sep 2009 17:55:13 -0000	1.6
--- Linux-Intel-CXX.cmake	2 Oct 2009 17:52:12 -0000	1.7
***************
*** 1,5 ****
  INCLUDE(Platform/Linux-Intel)
  IF(XIAR)
!   SET(CMAKE_CXX_CREATE_STATIC_LIBRARY
      "${XIAR} cr <TARGET> <LINK_FLAGS> <OBJECTS> "
      "${XIAR} -s <TARGET> ")
--- 1,7 ----
  INCLUDE(Platform/Linux-Intel)
  IF(XIAR)
!   # INTERPROCEDURAL_OPTIMIZATION
!   SET(CMAKE_CXX_COMPILE_OPTIONS_IPO -ipo)
!   SET(CMAKE_CXX_CREATE_STATIC_LIBRARY_IPO
      "${XIAR} cr <TARGET> <LINK_FLAGS> <OBJECTS> "
      "${XIAR} -s <TARGET> ")



More information about the Cmake-commits mailing list