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

Use DLL_EXTENSION rather than hardcoding .so #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tgross35
Copy link
Contributor

Non-Linux platforms should be able to build the backend, but MacOS can't find the shared library because the extension is incorrect. Use DLL_EXTENSION rather than a fixed .so.

Non-Linux platforms should be able to build the backend, but MacOS can't
find the shared library because the extension is incorrect. Use
`DLL_EXTENSION` rather than a fixed `.so`.
@tgross35 tgross35 enabled auto-merge (rebase) October 30, 2024 05:43
@tgross35
Copy link
Contributor Author

With this change, tests pass on MacOS.

@bjorn3
Copy link
Member

bjorn3 commented Oct 30, 2024

This won't work with cross-compilation. You did need something like https://github.com/rust-lang/rustc_codegen_cranelift/blob/616abf15d9690d29fa62abbfe70c4139b85f4c50/build_system/rustc_info.rs#L80-L99 instead for that.

@tgross35 tgross35 disabled auto-merge October 30, 2024 17:19
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.

2 participants