mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 15:54:04 +02:00
[include] fix up scons vs ccache
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32902 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
12c804da28
commit
f12d141fa0
@ -1,8 +1,8 @@
|
|||||||
export PLATFORM=posix
|
export PLATFORM=posix
|
||||||
|
|
||||||
SCONS_VARS = \
|
SCONS_VARS = \
|
||||||
CC="$(TARGET_CC)" \
|
CC="$(TARGET_CC_NOCACHE)" \
|
||||||
CXX="$(TARGET_CXX)" \
|
CXX="$(TARGET_CXX_NOCACHE)" \
|
||||||
CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
|
||||||
CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
|
CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
|
||||||
CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
|
CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
|
||||||
|
3
rules.mk
3
rules.mk
@ -185,13 +185,14 @@ INSTALL_DIR:=install -d -m0755
|
|||||||
INSTALL_DATA:=install -m0644
|
INSTALL_DATA:=install -m0644
|
||||||
INSTALL_CONF:=install -m0600
|
INSTALL_CONF:=install -m0600
|
||||||
|
|
||||||
ifneq ($(CONFIG_CCACHE),)
|
|
||||||
TARGET_CC_NOCACHE:=$(TARGET_CC)
|
TARGET_CC_NOCACHE:=$(TARGET_CC)
|
||||||
TARGET_CXX_NOCACHE:=$(TARGET_CXX)
|
TARGET_CXX_NOCACHE:=$(TARGET_CXX)
|
||||||
HOSTCC_NOCACHE:=$(HOSTCC)
|
HOSTCC_NOCACHE:=$(HOSTCC)
|
||||||
export TARGET_CC_NOCACHE
|
export TARGET_CC_NOCACHE
|
||||||
export TARGET_CXX_NOCACHE
|
export TARGET_CXX_NOCACHE
|
||||||
export HOSTCC_NOCACHE
|
export HOSTCC_NOCACHE
|
||||||
|
|
||||||
|
ifneq ($(CONFIG_CCACHE),)
|
||||||
TARGET_CC:= ccache_cc
|
TARGET_CC:= ccache_cc
|
||||||
TARGET_CXX:= ccache_cxx
|
TARGET_CXX:= ccache_cxx
|
||||||
HOSTCC:= ccache $(HOSTCC)
|
HOSTCC:= ccache $(HOSTCC)
|
||||||
|
Loading…
Reference in New Issue
Block a user