Skip to content

Commit

Permalink
[sb2] Fix generating argv/envp processing rules for host-gcc. JB#52287
Browse files Browse the repository at this point in the history
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 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scratchbox2/lua_scripts/argvenvp_gcc.lua
Expand Up @@ -73,10 +73,7 @@ function register_gcc_component_path(tmp, gccrule)
table.insert(gcc_tools_path_prefixes, x)
end

if gccrule == nil then
return
end

if gccrule ~= nil then
if gccrule.cross_gcc_dir ~= nil then
table.insert(gcc_tools_path_prefixes, gccrule.cross_gcc_dir)
end
Expand All @@ -86,6 +83,7 @@ function register_gcc_component_path(tmp, gccrule)
table.insert(gcc_tools_path_prefixes, path)
end
end
end

tmp.path_prefixes = gcc_tools_path_prefixes
argvmods[tmp.name] = tmp
Expand Down

0 comments on commit 1dead59

Please sign in to comment.