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

Set default build target for native builds #10

Merged
merged 2 commits into from
Aug 23, 2024

Conversation

rucoder
Copy link
Contributor

@rucoder rucoder commented Aug 23, 2024

CARGO_BUILD_TARGET must be always set since we are not building for default -unknown-linug-gnu triplet

@rucoder rucoder requested a review from deitch August 23, 2024 11:03
Dockerfile Outdated
RUN rustup default $RUST_VERSION-riscv64gc-unknown-linux-gnu
ENV CARGO_BUILD_TARGET="riscv64gc-unknown-linux-gnu"

FROM tools-target-$TARGETARCH AS tools-trget
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be tools-target (typo)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should be tools-target (typo)

yep, I'll fix in the next push

@deitch
Copy link
Contributor

deitch commented Aug 23, 2024

Fixes #8

@deitch
Copy link
Contributor

deitch commented Aug 23, 2024

I can confirm that this resolves our build issues. As long as apk add python3 is included towards the end, same line as apk add mold clang.

@rucoder rucoder marked this pull request as ready for review August 23, 2024 11:40
@rucoder rucoder merged commit e2d300a into lf-edge:main Aug 23, 2024
2 checks passed
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