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

preparing RustyHermit to support aarch64 #61

Merged
merged 7 commits into from
Sep 12, 2020

Conversation

stlankes
Copy link
Contributor

No description provided.

@stlankes stlankes changed the title prepare RustyHermit to support aarch64 preparing RustyHermit to support aarch64 Aug 13, 2020
Copy link
Member

@jounathaen jounathaen left a comment

Choose a reason for hiding this comment

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

Looks quite good 👍

.arg("--target")
.arg("x86_64-unknown-hermit-kernel");

if target.target_arch() == "x86_64" {
Copy link
Member

Choose a reason for hiding this comment

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

match > if else

.join(&profile)
.canonicalize()
.unwrap(); // Must exist after building
let lib_location = if target.target_arch() == "x86_64" {
Copy link
Member

Choose a reason for hiding this comment

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

match > if else

.arg("-Z")
.arg("build-std=core,alloc")
.arg("--target")
.arg("x86_64-unknown-hermit-kernel");
Copy link
Member

Choose a reason for hiding this comment

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

You could as well put the if-else/match statement only into the last argument. The others seem to be identical. BTW: with the latest nightlys you could also specify build-std in the .cargo/config.

@stlankes stlankes merged commit fa6f7bd into hermit-os:master Sep 12, 2020
@stlankes stlankes deleted the aarch64 branch September 12, 2020 08:26
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