mirror of https://github.com/aseprite/aseprite.git
Add flag to improve linking times when we use the Skia port
This commit is contained in:
parent
03c0367827
commit
69bb8fef9b
|
|
@ -14,6 +14,12 @@ endif()
|
|||
# Compiler-specific flags
|
||||
|
||||
if(MSVC)
|
||||
# As Skia is compiled with /GL flag (whole program optimization),
|
||||
# the linker prefer a /LTCG parameter to improve link times.
|
||||
if(USE_SKIA_BACKEND)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LTCG")
|
||||
endif()
|
||||
|
||||
# Do not link with libcmt.lib (to avoid duplicated symbols with msvcrtd.lib)
|
||||
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB:LIBCMT")
|
||||
|
|
|
|||
Loading…
Reference in New Issue