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

Small fix to support aarch64. #35

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

blueforesticarus
Copy link
Contributor

Tests pass on both x86 and arm after the change.
To get tests and cargo-swipl to build nixos I also had to specify the link path like so

RUSTFLAGS="-L/nix/store/8qslsmfg3b6y35r2dmsycf65vpk8msma-swi-prolog-8.3.29/lib/"
RUSTDOCFLAGS="-L/nix/store/8qslsmfg3b6y35r2dmsycf65vpk8msma-swi-prolog-8.3.29/lib/"

but I expect on a regular system they will just work.

I was able to patch this into terminusdb and everything appears to be working.

Convert casts to *i8 to *std::os::raw::c_char.
see terminusdb-labs#34
@matko
Copy link
Collaborator

matko commented Nov 2, 2022

Thanks a bunch! Interesting to see that chars are apparently not i8 on aarch, or at least not generated as such by bindgen.

@rrooij it'd be nice if we could have aarch in our CI, cause there's a big chance I'm inevitably going to screw this up again, given that i do not have any aarch hardware. Is that possible?

@matko matko merged commit 3ab3946 into terminusdb-labs:master Nov 2, 2022
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