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

Use riscv64-unknown-linux-gnu for target on clang. #608

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

makotokato
Copy link
Contributor

When using CC=clang, clang says error: unknown target triple 'riscv64gc-unknown-linux-gnu'. So we should replace riscv64gc with riscv64.

.globl _asm
_asm:
li a0, 7
ret
Copy link
Member

Choose a reason for hiding this comment

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

Is this perhaps a stray file? (I'm not sure if this is used?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

when running cargo test on cc-test, .S file is used in https://github.com/alexcrichton/cc-rs/blob/b63f824ca395a3a063d97d7f7714fab9a0ab8116/cc-test/build.rs#L24-L31. This is for test.

Copy link
Member

Choose a reason for hiding this comment

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

Ah indeed!

@alexcrichton alexcrichton merged commit 19320dd into rust-lang:master Jun 9, 2021
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