[aseprite] 133/250: Add flag to improve linking times when we use the Skia port
Tobias Hansen
thansen at moszumanska.debian.org
Sun Dec 20 15:27:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 69bb8fef9b3aa6109a3efd12834a206caad0c0ed
Author: David Capello <davidcapello at gmail.com>
Date: Mon Oct 5 21:19:11 2015 -0300
Add flag to improve linking times when we use the Skia port
---
src/CMakeLists.txt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2aa2771..ee0f694 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -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")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list