Added support for resource compiler tool under the GCC toolset.

This commit is contained in:
triton 2013-09-27 00:37:24 +01:00
parent 5946f73f4c
commit 48c49498fa
2 changed files with 5 additions and 0 deletions

View File

@ -288,6 +288,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()