Enable PCH in the Debian, travis-ci, and AppVeyor builds.

It was enabled by default on AppVeyor, but now we're explicit.

This should reduce build times slightly on the Ubuntu PPA servers and
travis-ci.
This commit is contained in:
David Korth 2020-02-23 12:51:32 -05:00
parent f6433dc768
commit c3f48b43a7
3 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
@ECHO OFF
cmake --version
IF "%PLATFORM%" == "x64" (
cmake . -G "Visual Studio 12 2013 Win64" -DCMAKE_GENERATOR_TOOLSET=v120_xp -DENABLE_JPEG=ON -DBUILD_TESTING=ON -DENABLE_LTO=OFF
cmake . -G "Visual Studio 12 2013 Win64" -DCMAKE_GENERATOR_TOOLSET=v120_xp -DENABLE_JPEG=ON -DBUILD_TESTING=ON -DENABLE_LTO=OFF -DENABLE_PCH=ON
) ELSE (
cmake . -G "Visual Studio 12 2013" -DCMAKE_GENERATOR_TOOLSET=v120_xp -DENABLE_JPEG=ON -DBUILD_TESTING=ON -DENABLE_LTO=OFF
cmake . -G "Visual Studio 12 2013" -DCMAKE_GENERATOR_TOOLSET=v120_xp -DENABLE_JPEG=ON -DBUILD_TESTING=ON -DENABLE_LTO=OFF -DENABLE_PCH=ON
)

3
debian/rules vendored
View File

@ -23,7 +23,8 @@ CMAKE_OPTIONS := \
-DBUILD_CINNAMON=ON \
-DBUILD_CLI=ON \
-DENABLE_PVRTC=ON \
-DENABLE_LTO=ON
-DENABLE_LTO=ON \
-DENABLE_PCH=ON
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
CMAKE_OPTIONS += -DBUILD_TESTING=ON
endif

View File

@ -11,8 +11,8 @@ case "$OSTYPE" in
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSPLIT_DEBUG=OFF \
-DENABLE_PCH=OFF \
-DENABLE_LTO=OFF \
-DENABLE_PCH=ON \
-DBUILD_TESTING=ON \
-DENABLE_JPEG=ON \
-DENABLE_NLS=OFF \
@ -25,6 +25,7 @@ case "$OSTYPE" in
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_LTO=OFF \
-DENABLE_PCH=ON \
-DBUILD_TESTING=ON \
-DENABLE_JPEG=ON \
-DENABLE_NLS=ON \