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){
# ccache support only Unix systems.
unix:{
# This need for turn on ccache.
*-g++{
QMAKE_CC = ccache gcc
export(QMAKE_CC) # export value to global variable.
no_ccache{ # For enable run qmake with CONFIG+=no_ccache
# do nothing
} else {
# ccache support only Unix systems.
unix:{
# This need for turn on ccache.
*-g++{
QMAKE_CC = ccache gcc
export(QMAKE_CC) # export value to global variable.
QMAKE_CXX = ccache g++
export(QMAKE_CXX) # export value to global variable.
}
clang*{
QMAKE_CC = ccache clang
export(QMAKE_CC) # export value to global variable.
QMAKE_CXX = ccache g++
export(QMAKE_CXX) # export value to global variable.
}
clang*{
QMAKE_CC = ccache clang
export(QMAKE_CC) # export value to global variable.
QMAKE_CXX = ccache clang++
export(QMAKE_CXX) # export value to global variable.
QMAKE_CXX = ccache clang++
export(QMAKE_CXX) # export value to global variable.
}
}
}
return(true)