Disable requirement of using ccache.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-05-16 17:14:35 +03:00
parent fb054879e0
commit f92df37f12

View File

@ -70,22 +70,26 @@ defineReplace(set_PCH){
} }
defineReplace(enable_ccache){ defineReplace(enable_ccache){
# ccache support only Unix systems. no_ccache{ # For enable run qmake with CONFIG+=no_ccache
unix:{ # do nothing
# This need for turn on ccache. } else {
*-g++{ # ccache support only Unix systems.
QMAKE_CC = ccache gcc unix:{
export(QMAKE_CC) # export value to global variable. # This need for turn on ccache.
*-g++{
QMAKE_CC = ccache gcc
export(QMAKE_CC) # export value to global variable.
QMAKE_CXX = ccache g++ QMAKE_CXX = ccache g++
export(QMAKE_CXX) # export value to global variable. export(QMAKE_CXX) # export value to global variable.
} }
clang*{ clang*{
QMAKE_CC = ccache clang QMAKE_CC = ccache clang
export(QMAKE_CC) # export value to global variable. export(QMAKE_CC) # export value to global variable.
QMAKE_CXX = ccache clang++ QMAKE_CXX = ccache clang++
export(QMAKE_CXX) # export value to global variable. export(QMAKE_CXX) # export value to global variable.
}
} }
} }
return(true) return(true)