-
Notifications
You must be signed in to change notification settings - Fork 229
Add a fix for aarch64-darwin and enable it in CI #592
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
Conversation
f00788c
to
adb0dce
Compare
@Amanieu this PR is pretty small, would you be able to merge it? It would just make it easier for me to develop/test locally without carrying an extra patch around. |
src/lib.rs
Outdated
@@ -62,7 +62,11 @@ pub mod arm; | |||
#[cfg(any(target_arch = "aarch64", target_arch = "arm64ec"))] | |||
pub mod aarch64; | |||
|
|||
#[cfg(all(target_arch = "aarch64", target_os = "linux", not(feature = "no-asm"),))] | |||
#[cfg(all( | |||
any(target_arch = "aarch64", target_arch = "arm64ec"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARM64EC only exists on Windows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, would it be better to leave arm64ec but change the cfg to not(target_os = "macos")
so it still gets tested on Windows? I don't know where this is needed but it must have been passing okay on the windows platforms.
Trying to run testcrate on non-linux aarch64 currently hits a compilation error. Make this test linux-only, to be consistent with the `aarch64_linux` module that it depends on. Additionally, enable the `aarch64_linux` module for `target_arch = "arm64ec"` to be the same as these tests.
The Apple ARM silicon has been around for a while now and hopefully will become Rust Tier 1 at some point. Add it to CI since it is distinct enough from aarch64-linux and x86_86-darwin that there may be differences.
Thanks! |
This includes two commits:
Change aarch64_linux module and lse tests to have the same gating
Trying to run testcrate on non-linux aarch64 currently hits a compilation error. Make this test linux-only, to be consistent with the
aarch64_linux
module that it depends on.Additionally, enable the
aarch64_linux
module fortarget_arch = "arm64ec"
to be the same as these tests.Add CI testing for AArch64 Darwin
The Apple ARM silicon has been around for a while now and hopefully will become Rust Tier 1 at some point. Add it to CI since it is distinct enough from aarch64-linux and x86_86-darwin that there may be differences.