Skip to content

Commit

Permalink
ci: fix for v build-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Nov 19, 2024
1 parent 09f8b56 commit 6c98233
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vlib/v/gen/js/fn.v
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ fn (mut g JsGen) is_used_by_main(node ast.FnDecl) bool {
mut is_used_by_main := true
if g.pref.skip_unused {
fkey := node.fkey()
is_used_by_main = g.table.used_fns[fkey]
is_used_by_main = g.table.used_features.used_fns[fkey]
$if trace_skip_unused_fns ? {
println('> is_used_by_main: ${is_used_by_main} | node.name: ${node.name} | fkey: ${fkey} | node.is_method: ${node.is_method}')
}
Expand Down
2 changes: 1 addition & 1 deletion vlib/v/gen/native/gen.v
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ fn (mut g Gen) is_used_by_main(node ast.FnDecl) bool {
mut used := true
if g.pref.skip_unused {
fkey := node.fkey()
used = g.table.used_fns[fkey]
used = g.table.used_features.used_fns[fkey]
}
return used
}
Expand Down

0 comments on commit 6c98233

Please sign in to comment.