Merge pull request #177 from TurkeyMan/gcc_prefix
Fixed GCC prefix, which was all messed up somehow
This commit is contained in:
commit
1b2f19fa87
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user