Commit 1dead59e authored by Martin Kampas's avatar Martin Kampas

[sb2] Fix generating argv/envp processing rules for host-gcc. JB#52287

This fixes commit dbcf9d60 (support
different gcc search patchs)
parent be954f53
......@@ -73,17 +73,15 @@ function register_gcc_component_path(tmp, gccrule)
table.insert(gcc_tools_path_prefixes, x)
end
if gccrule == nil then
return
end
if gccrule.cross_gcc_dir ~= nil then
table.insert(gcc_tools_path_prefixes, gccrule.cross_gcc_dir)
end
if gccrule ~= nil then
if gccrule.cross_gcc_dir ~= nil then
table.insert(gcc_tools_path_prefixes, gccrule.cross_gcc_dir)
end
if gccrule.cross_gcc_progs_path ~= nil then
for path in string.gmatch(gccrule.cross_gcc_progs_path,"[^:]+") do
table.insert(gcc_tools_path_prefixes, path)
if gccrule.cross_gcc_progs_path ~= nil then
for path in string.gmatch(gccrule.cross_gcc_progs_path,"[^:]+") do
table.insert(gcc_tools_path_prefixes, path)
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment