diff --git a/src/tools/gcc.lua b/src/tools/gcc.lua index cef5af42..8d1e8d2d 100644 --- a/src/tools/gcc.lua +++ b/src/tools/gcc.lua @@ -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 diff --git a/tests/tools/test_gcc.lua b/tests/tools/test_gcc.lua index fec6812e..4a55e9b3 100644 --- a/tests/tools/test_gcc.lua +++ b/tests/tools/test_gcc.lua @@ -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()