Skip to content

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