Added CXX and fixed LD [qmc2] (nw)

This commit is contained in:
Miodrag Milanovic 2015-03-26 15:49:06 +01:00
parent b4d9920e10
commit 604d83b1e3
3 changed files with 12 additions and 1 deletions

View File

@ -21,6 +21,9 @@ endif
ifdef CC
PARAMS+= --CC='$(CC)'
endif
ifdef CXX
PARAMS+= --CXX='$(CXX)'
endif
ifdef LD
PARAMS+= --LD='$(LD)'
endif

View File

@ -109,6 +109,11 @@ newoption {
description = "CC replacement",
}
newoption {
trigger = "CXX",
description = "CXX replacement",
}
newoption {
trigger = "LD",
description = "LD replacement",

View File

@ -333,8 +333,11 @@ function toolchain(_buildDir)
if (_OPTIONS["CC"] ~= nil) then
premake.gcc.cc = _OPTIONS["CC"]
end
if (_OPTIONS["CXX"] ~= nil) then
premake.gcc.cxx = _OPTIONS["CXX"]
end
if (_OPTIONS["LD"] ~= nil) then
premake.gcc.cxx = _OPTIONS["LD"]
premake.gcc.ld = _OPTIONS["LD"]
end
configuration {} -- reset configuration