-
-
Notifications
You must be signed in to change notification settings - Fork 784
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
python.library crumbles include directories #5130
Comments
you can try |
Yes, this has helped, thank you 👍 However, the point was to build the bindings library only when there's a pybind11 in the system w/o downloading it. The fact that pkg-config is causing a build failure seems like a bug. |
This is a known gcc issue, we can not set However, we can't get pkg-config not to return the |
Is there some way to use -I instead of -isystem? Semantics is somewhat different, but it works then. |
|
Perfect! Thank you. The first option is the way to go in my case. Some further digging just for the reference. The output of the pkg-config is indeed questionable:
I would rather expect Python's includes to be listed rather than just /usr/include but we have what we have. Given this and the conversion of the -I to -isystem by default, I think it is safe to say that the package itself (or its build) is a culprit, so it is a corner case and the issue can be closed. Thank you again for the quick resolution. |
Xmake Version
2.9.1
Operating System Version and Architecture
Linux new-nq 6.8.7-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Wed, 17 Apr 2024 15:20:00 +0000 x86_64 GNU/Linux
Describe Bug
python.library rules fail to build library.
Expected Behavior
Expected to build a library
Project Configuration
Took an example configuration from docs.
Additional Information and Error Logs
Happens on both
CLang 17.0.6
GCC 14.1.1
Surprisingly but
xmake project -k cmake && cmake . && make
is working.The text was updated successfully, but these errors were encountered: