Merge branch 'master' into wasm

This commit is contained in:
trevyn 2024-01-18 09:36:53 +04:00 committed by GitHub
commit d9065480c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 8 deletions

View file

@ -80,7 +80,7 @@ jobs:
os: windows-latest
rust: nightly-x86_64-gnu
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Rust (rustup)
@ -108,7 +108,7 @@ jobs:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
submodules: true
- name: Install stable `rustfmt`
@ -119,7 +119,7 @@ jobs:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
submodules: true
# Unlike rustfmt, stable clippy does not work on code with nightly features.

View file

@ -1,7 +1,7 @@
[package]
authors = ["Jorge Aparicio <japaricious@gmail.com>"]
name = "compiler_builtins"
version = "0.1.105"
version = "0.1.106"
license = "MIT/Apache-2.0"
readme = "README.md"
repository = "https://github.com/rust-lang/compiler-builtins"

View file

@ -57,9 +57,7 @@ fn main() {
// Don't use a C compiler for these targets:
//
// * nvptx - everything is bitcode, not compatible with mixed C/Rust
// * riscv - the rust-lang/rust distribution container doesn't have a C
// compiler.
if !target.contains("nvptx") && (!target.starts_with("riscv") || target.contains("xous")) {
if !target.contains("nvptx") {
#[cfg(feature = "c")]
c::compile(&llvm_target, &target);
}
@ -514,7 +512,7 @@ mod c {
}
}
if target_arch == "mips" {
if target_arch == "mips" || target_arch == "riscv32" || target_arch == "riscv64" {
sources.extend(&[("__bswapsi2", "bswapsi2.c")]);
}