mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03:00
Added CXX and fixed LD [qmc2] (nw)
This commit is contained in:
parent
b4d9920e10
commit
604d83b1e3
3
makefile
3
makefile
@ -21,6 +21,9 @@ endif
|
||||
ifdef CC
|
||||
PARAMS+= --CC='$(CC)'
|
||||
endif
|
||||
ifdef CXX
|
||||
PARAMS+= --CXX='$(CXX)'
|
||||
endif
|
||||
ifdef LD
|
||||
PARAMS+= --LD='$(LD)'
|
||||
endif
|
||||
|
@ -109,6 +109,11 @@ newoption {
|
||||
description = "CC replacement",
|
||||
}
|
||||
|
||||
newoption {
|
||||
trigger = "CXX",
|
||||
description = "CXX replacement",
|
||||
}
|
||||
|
||||
newoption {
|
||||
trigger = "LD",
|
||||
description = "LD replacement",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user