From 48c49498fa2015b9c0261c3cf923645088133277 Mon Sep 17 00:00:00 2001 From: triton Date: Fri, 27 Sep 2013 00:37:24 +0100 Subject: [PATCH] Added support for resource compiler tool under the GCC toolset. --- src/tools/gcc.lua | 4 ++++ tests/tools/test_gcc.lua | 1 + 2 files changed, 5 insertions(+) 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()