bjorn3 commented on issue #2961:
This is only correct for 64bit systems using the SystemV call conv as default.
abrown commented on issue #2961:
This is only correct for 64bit systems using the SystemV call conv as default.
Yup. How is the current
#[cfg_attr(not(target_arch = "x86_64"), ignore)]
correct, though? When run on a non-SystemV-OS, I would guess the test should run into similar calling convention errors...
bjorn3 commented on issue #2961:
Previously plain
x86_64
was used as target, which always defaults to SystemV. After this change the OS is also included, which can override the default calling convention. An alternative to this PR would be to add a dev-dependency on cranelift-codegen to cranelift-frontend with the x86_64 backend enabled.
bjorn3 commented on issue #2961:
A final suggestion would be to manually construct a specific
FrontendConfig
value and then avoidTargetIsa
completely.
Last updated: Dec 23 2024 at 13:07 UTC