-
Notifications
You must be signed in to change notification settings - Fork 197
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
Support use #include <tommath.h>
for SwiftPM dependencies
#518
Conversation
How about setting the include path correctly instead? Or is that not possible in this swift package manager thing? @royjit maybe you can give some hints here how this is done properly!? Adding another header simply doesn't look right to me ... |
now, SwiftPM can't find |
After reading SE-0038 I'm still not entirely sure if that's the correct way to do things. @ddunbar sorry highlighting you here, but you are the author of said specification and maybe you can shed some light on this? ... please also read through the comments in libtom/libtomcrypt#575 for further context ... |
Reply to libtom/libtomcrypt#575 (comment) Why is this building Line 27 in 2cec6ad
|
It seems a new
|
How about build I tried, it works and just Package.swift of libtomcrypt .unsafeFlags(["-xobjective-c"]), math/ltm_desc.c #ifdef SWIFT_PACKAGE
@import TomMath;
#else
#include <tommath.h>
#endif
I can't figure it out yet |
Keep trying |
Swift 5.2 Issue with headers in same dir as [PackageLoading] Handle header files in TargetSourcesBuilder keeping a close watch on it. |
I found it, it'is a bug: https://bugs.swift.org/browse/SR-14456 https://forums.swift.org/t/unable-to-exclude-specific-headers-from-a-target/51017 |
I'm closing this as there was no action for too long. |
for libtom/libtomcrypt#575