Author: dgorbachev
Date: Sat Nov 2 13:56:47 2013
New Revision: 60832
URL:
http://svn.reactos.org/svn/reactos?rev=60832&view=rev
Log:
[CMAKE]
Reduce the disk space needed to build ReactOS (disabled for LTCG builds - linker bug
#15143).
Modified:
trunk/reactos/toolchain-gcc.cmake
Modified: trunk/reactos/toolchain-gcc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/toolchain-gcc.cmake?rev=60…
==============================================================================
--- trunk/reactos/toolchain-gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/toolchain-gcc.cmake [iso-8859-1] Sat Nov 2 13:56:47 2013
@@ -47,11 +47,13 @@
set(CMAKE_RC_COMPILER ${MINGW_TOOLCHAIN_PREFIX}windres)
set(CMAKE_DLLTOOL ${MINGW_TOOLCHAIN_PREFIX}dlltool)
-if(NOT CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
- set(CMAKE_C_CREATE_STATIC_LIBRARY "<CMAKE_AR> crs <TARGET>
<LINK_FLAGS> <OBJECTS>")
- set(CMAKE_CXX_CREATE_STATIC_LIBRARY ${CMAKE_C_CREATE_STATIC_LIBRARY})
- set(CMAKE_ASM_CREATE_STATIC_LIBRARY ${CMAKE_C_CREATE_STATIC_LIBRARY})
+if(NOT LTCG)
+ set(CMAKE_C_CREATE_STATIC_LIBRARY "<CMAKE_AR> crT <TARGET>
<LINK_FLAGS> <OBJECTS>")
+else()
+ set(CMAKE_C_CREATE_STATIC_LIBRARY "<CMAKE_AR> cr <TARGET>
<LINK_FLAGS> <OBJECTS>")
endif()
+set(CMAKE_CXX_CREATE_STATIC_LIBRARY ${CMAKE_C_CREATE_STATIC_LIBRARY})
+set(CMAKE_ASM_CREATE_STATIC_LIBRARY ${CMAKE_C_CREATE_STATIC_LIBRARY})
# Don't link with anything by default unless we say so
set(CMAKE_C_STANDARD_LIBRARIES "-lgcc" CACHE STRING "Standard C
Libraries")