Skip to content

Conversation

jiaobendaye
Copy link
Contributor

No description provided.

if not package:config("debug") or package:is_mode("release") then
table.insert(configs, "DEBUG=")
end
os.vrunv("make install ", configs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should use package.tools.make to install it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果用 package.tools.make的话,发现configs只会在make时生效,第二步执行 make install时就没了,所以直接用的os.vrunv

Copy link
Contributor

@luadebug luadebug Sep 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think at this case we have to follow existing recipe structure. That is why last lines of recipes should use tool not vrun.

@luadebug luadebug changed the title add hiredis-vip hiredis-vip: add new package Sep 4, 2025
@waruqi waruqi merged commit 33fdbab into xmake-io:dev Sep 4, 2025
76 of 77 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants