qmake fixQmakeCC support versioned g++

capable to straslate things like g++-7 to gcc-7
Useful for distro packaging
This commit is contained in:
Gioacchino Mazzurco 2019-04-24 18:58:09 +02:00
parent fb4f206427
commit cd3755da9e
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -348,6 +348,7 @@ defineReplace(fixQmakeCC) {
retVal = $$1
contains(1, .*\+\+$):retVal=$$str_member($$1, 0 ,-3)
contains(1, .*g\+\+$):retVal=$$str_member($$1, 0 ,-3)cc
contains(1, .*g\+\+-[0-9]$):retVal=$$str_member($$1, 0 ,-5)cc$$str_member($$1, -2 ,-1)
contains(1, .*clang\+\+$):retVal=$$str_member($$1, 0 ,-3)
return($$retVal)
}