Merged in triton/premake-cs-fixes/gcc-rc (pull request #68)

Added support for resource compiler tool under the GCC toolset.
This commit is contained in:
Jason Perkins 2013-10-24 11:39:57 -04:00
commit d2295fc5d5
2 changed files with 5 additions and 0 deletions

View File

@ -304,6 +304,10 @@
--
function gcc.gettoolname(cfg, tool)
if tool == "rc" then
return "windres"
end
local sysflags = gcc.sysflags[cfg.architecture] or gcc.sysflags[cfg.system] or {}
return sysflags[tool]
end

View File

@ -36,6 +36,7 @@
test.isnil(gcc.gettoolname(cfg, "cc"))
test.isnil(gcc.gettoolname(cfg, "cxx"))
test.isnil(gcc.gettoolname(cfg, "ar"))
test.isequal("windres", gcc.gettoolname(cfg, "rc"))
end
function suite.tools_onPS3()