Activate ccache for CMake

pull/13566/head
Ladislas de Toldi 2020-10-28 14:27:45 +01:00 committed by Hugues Kamba
parent 7a32e42a60
commit 76cf2f7232
2 changed files with 7 additions and 2 deletions

View File

@ -26,10 +26,9 @@ env:
cache:
pip: true
ccache: true
directories:
- ${HOME}/.cache/deps
- ${HOME}/.ccache
before_install:
- source tools/test/travis-ci/functions.sh

View File

@ -1,6 +1,12 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
find_program(CCACHE "ccache")
if(CCACHE)
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE})
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE})
endif()
include(${MBED_CONFIG_PATH}/mbed_config.cmake)
# Set default toolchain file