Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[sb2] Fix generating argv/envp processing rules for host-gcc. JB#52287
This fixes commit dbcf9d6 (support
different gcc search patchs)
  • Loading branch information
martyone committed Dec 17, 2020
1 parent be954f5 commit 1dead59
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions scratchbox2/lua_scripts/argvenvp_gcc.lua
Expand Up @@ -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

Expand Down

0 comments on commit 1dead59

Please sign in to comment.