Support for Fedora 64bit directory linking#29
Conversation
…y for 64bit architectures
flxo
left a comment
There was a problem hiding this comment.
Thank you! Can please leave a comment on the lines about the order?
nit: avoid the allocation lib if lib64 is present:
let lib64 = dst.join("lib64");
if lib64.exists() { lib64 } else { dst.join("lib") }
📝 WalkthroughWalkthroughThe build script for nng-sys now conditionally prioritizes a Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
support for fedora systems where cmake defaults to the lib64 directory for 64bit architectures --------- Co-authored-by: Felix Obenhuber <flxo@users.noreply.github.com>
When using Fedora CMake defaults to generating targets within
<build>/lib64/libnng.ainstead of<build>/lib/libnng.a.nng-sys/build.rsonly looks for libraries within thelibfolder and as such fails to build. This PR adds support for this alternative directory.This is likely not the best implementation solution, but I'm hoping to shed light on the underlying issue.
Summary by CodeRabbit