Skip to content

Implementing Support for powerpc64le Linux #74

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

Merged
merged 7 commits into from
May 13, 2025

Conversation

2M1
Copy link
Contributor

@2M1 2M1 commented May 7, 2025

This PR resolves #60 by implementing support for the powerpc64le Linux target.

To achieve this I had to replace a unused parameter type with a void pointer (from ucontext_t) in the signal handler in src/stack/overflow_unix.rs. This is due to it not being present in libc for ppc64le. There is currently an active PR, that will resolve this: rust-lang/libc#3964, rust-lang/libc#3986. As soon as this is merged, this should probably be switched back to the correct type.

Furthermore building with inline assembly (global_asm!) is not stable on powerpc yet so I adjusted the Buildprocess in the build.rs file to build the assembly externally and link it when building for powerpc64le.

I also adjusted the .travis.yml but could not test this. However in my live env all tests are passing in both debug and release builds. The Cross.toml was extended as well.

@Xudong-Huang
Copy link
Owner

Great! Thanks!

@Xudong-Huang Xudong-Huang merged commit c228277 into Xudong-Huang:master May 13, 2025
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.

[feature request] Support linux-ppc64le
2 participants