From 0703956e78d1d0352e69273295a0301586f86ca8 Mon Sep 17 00:00:00 2001 From: Andy Clayton Date: Tue, 31 Mar 2020 19:41:50 -0500 Subject: use built-in cmake precompiled header support when available Ledger supports precompiling headers as a build speed optimization. This is provided via a custom add_pch_rule macro. Similar functionality is now built-in to CMake starting with the 3.16 release in November 2019. Let's use this when available to fix #1774 and start towards not needing to maintain our own implementation. I originally considered removing the macro fallback but in my tests it saves enough build time that I think it is worth keeping for now. Fixes #1774 --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index ec9e4b12..e5536fc1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -57,8 +57,8 @@ addons: - mpfr before_script: - # On macOS, precompiling system.hh does not work, and boost-python packaging is broken - - if [ "$TRAVIS_OS_NAME" = osx ]; then EXTRA_CMAKE_ARGS="-DPRECOMPILE_SYSTEM_HH=OFF -DBoost_NO_BOOST_CMAKE=ON"; fi + # On macOS boost-python packaging is broken + - if [ "$TRAVIS_OS_NAME" = osx ]; then EXTRA_CMAKE_ARGS="-DBoost_NO_BOOST_CMAKE=ON"; fi - cmake . -DUSE_PYTHON=ON -DPython_FIND_VERSION_MAJOR=${PY_MAJOR} -DBUILD_DEBUG=ON $EXTRA_CMAKE_ARGS - make VERBOSE=1 -- cgit v1.2.3