mirror of https://github.com/ARMmbed/mbed-os.git
Activate ccache for CMake
parent
7a32e42a60
commit
76cf2f7232
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue