Merge pull request #177 from TurkeyMan/gcc_prefix

Fixed GCC prefix, which was all messed up somehow
This commit is contained in:
starkos 2015-07-28 19:47:47 -04:00
commit 1b2f19fa87

View File

@ -352,13 +352,9 @@
}
function gcc.gettoolname(cfg, tool)
local names = gcc.tools[cfg.architecture] or gcc.tools[cfg.system] or {}
local name = names[tool]
if not name and (tool == "rc" or cfg.gccprefix) and gcc.tools[tool] then
name = (cfg.gccprefix or "") .. gcc.tools[tool]
end
return name
if (cfg.gccprefix and gcc.tools[tool]) or tool == "rc" then
return (cfg.gccprefix or "") .. gcc.tools[tool]
end
return nil
end