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

build: compile memory intrinsics on xous #548

Merged
merged 1 commit into from
Aug 12, 2023

Conversation

xobs
Copy link
Contributor

@xobs xobs commented Aug 10, 2023

Like SGX, Xous does not have any libc to link against. As a result, memory intrinsics need to be available as part of compiler_builtins

This will enable us to build for Xous as part of -Zbuild-std as referenced in rust-lang/rust#104101 (comment)

build.rs Outdated
@@ -1,3 +1,4 @@
#![allow(unused_extern_crates)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was needed in order to get it to compile with the particular version of Rust that I was building with. It might be that it was an older or newer version where it didn't like the extern crate cc declaration. I'll remove it and force-push.

Like SGX, Xous does not have any libc to link against. As a result,
memory intrinsics need to be available as part of `compiler_builtins`

Signed-off-by: Sean Cross <[email protected]>
@Amanieu Amanieu merged commit 2c941a0 into rust-lang:master Aug 12, 2023
21 checks passed
@xobs xobs deleted the mem-intrinsics-on-xous branch May 22, 2024 03:23
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