Skip to content

Commit

Permalink
rule add args
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Feb 26, 2024
1 parent 0c72f6e commit 9d3edb5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion scripts/workspace.lua
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,4 @@ return {
create = create,
push_attributes = push_attributes,
push_strings = push_strings,
push_args = push_args,
}
4 changes: 1 addition & 3 deletions scripts/writer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ local function reslove_attributes(g, l)
local t = {}
workspace.push_attributes(t, g, g_rootdir)
workspace.push_attributes(t, l, l_rootdir)
--TODO: remove it
workspace.push_args(t, l, l_rootdir)
t.workdir = g.workdir
t.rootdir = l_rootdir
return t
Expand Down Expand Up @@ -445,7 +443,7 @@ local function generate_rule(attribute, name)
loaded_rule[name] = true

local command = {}
for i, v in ipairs(attribute) do
for i, v in ipairs(attribute.args) do
command[i] = fsutil.quotearg(v)
end
if attribute.deps then
Expand Down

0 comments on commit 9d3edb5

Please sign in to comment.