1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

Merge pull request #45 from AlessioMorale/amorale/LP-41_ccache_support

Amorale/lp_41_ccache support
This commit is contained in:
a*morale 2015-07-22 20:42:11 +02:00
commit 594bb4fb91
4 changed files with 14 additions and 2 deletions

View File

@ -248,3 +248,9 @@ macx {
QMAKE_CXXFLAGS_WARN_ON += -Wno-gnu-static-float-init
}
}
# use ccache when available
QMAKE_CC = $$(CCACHE) $$QMAKE_CC
QMAKE_CXX = $$(CCACHE) $$QMAKE_CXX

View File

@ -8,6 +8,10 @@ QT -= gui
macx {
QMAKE_CXXFLAGS += -fpermissive
}
# use ccache when available
QMAKE_CC = $$(CCACHE) $$QMAKE_CC
QMAKE_CXX = $$(CCACHE) $$QMAKE_CXX
TARGET = uavobjgenerator
CONFIG += console
CONFIG -= app_bundle

View File

@ -21,8 +21,8 @@ ifndef TOP_LEVEL_MAKEFILE
endif
# Define toolchain component names.
CC = $(ARM_SDK_PREFIX)gcc
CXX = $(ARM_SDK_PREFIX)g++
CC = $(CCACHE) $(ARM_SDK_PREFIX)gcc
CXX = $(CCACHE) $(ARM_SDK_PREFIX)g++
AR = $(ARM_SDK_PREFIX)ar
OBJCOPY = $(ARM_SDK_PREFIX)objcopy
OBJDUMP = $(ARM_SDK_PREFIX)objdump

View File

@ -204,6 +204,8 @@ endif
# Command to extract version info data from the repository and source tree
export VERSION_INFO = $(PYTHON) $(ROOT_DIR)/make/scripts/version-info.py --path=$(ROOT_DIR)
export CCACHE
##############################
#
# Misc settings