diff mbox

[v2] qt5base: use ccache if enabled

Message ID 1385714869-10115-1-git-send-email-fatih.asici@gmail.com
State Accepted
Commit cb08d7b05db54eb7b2c52deabbd57c541777a422
Headers show

Commit Message

Fatih Aşıcı Nov. 29, 2013, 8:47 a.m. UTC
For now, it doesn't use ccache when compiling host tools (e.g. qmake).
It seems the fix is not trivial.

Signed-off-by: Fatih Aşıcı <fatih.asici@gmail.com>

---
Changes v1 -> v2:
  - pass ccache path to CROSS_COMPILE instead of setting another device
    variable (suggested by Peter Korsgaard)
---
 package/qt5/qt5base/qt5base.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Peter Korsgaard Nov. 29, 2013, 9:10 a.m. UTC | #1
>>>>> "Fatih" == Fatih Aşıcı <fatih.asici@gmail.com> writes:

 > For now, it doesn't use ccache when compiling host tools (e.g. qmake).
 > It seems the fix is not trivial.

 > Signed-off-by: Fatih Aşıcı <fatih.asici@gmail.com>

 > ---
 > Changes v1 -> v2:
 >   - pass ccache path to CROSS_COMPILE instead of setting another device
 >     variable (suggested by Peter Korsgaard)

Committed to next, thanks.
diff mbox

Patch

diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
index febdc9b..d95b186 100644
--- a/package/qt5/qt5base/qt5base.mk
+++ b/package/qt5/qt5base/qt5base.mk
@@ -167,7 +167,7 @@  define QT5BASE_CONFIGURE_CMDS
 		-no-rpath \
 		-nomake examples -nomake tests \
 		-device buildroot \
-		-device-option CROSS_COMPILE="$(TARGET_CROSS)" \
+		-device-option CROSS_COMPILE="$(CCACHE) $(TARGET_CROSS)" \
 		-device-option BUILDROOT_COMPILER_CFLAGS="$(TARGET_CFLAGS)" \
 		-device-option BUILDROOT_COMPILER_CXXFLAGS="$(TARGET_CXXFLAGS)" \
 		-device-option EGLFS_PLATFORM_HOOKS_SOURCES="$(QT5BASE_EGLFS_PLATFORM_HOOKS_SOURCES)" \