Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debugging mode is not supported when importing libhv through a repository in xmake #563

Closed
huye opened this issue Jun 1, 2024 · 2 comments

Comments

@huye
Copy link

huye commented Jun 1, 2024

import in the xmake.lua file:
add_requireconfs("libhv", {debug = is_mode("debug")}) add_requires("libhv") add_packages("libhv")

xecute the following command to switch to debugging mode:
xmake f -m debug
there is still no debugging information in the compiled binary file

@huye
Copy link
Author

huye commented Jun 3, 2024

I submitted a pr in the xmake-io/xmake-repo, I'm not sure if it's correct.
Insert the following content in line 66 of the file libhv/xmake.lua:
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))

@ithewei
Copy link
Owner

ithewei commented Jun 5, 2024

I don't known how to write xmake, you should consult the xmake author.

@ithewei ithewei closed this as completed Jun 11, 2024
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

No branches or pull requests

2 participants