about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2025-05-06 20:11:48 +0000
committerTrevor Gross <t.gross35@gmail.com>2025-05-06 17:59:03 -0400
commit61a14fcea05f8e9a544a5557b98633f7ace65109 (patch)
tree80002d1486286bea774c8eca21f3da1eaf33f5b6 /compiler/rustc_codegen_llvm/src/errors.rs
parent339793d62b4c455f2a8268e09f85ee471cd4847c (diff)
downloadrust-61a14fcea05f8e9a544a5557b98633f7ace65109.tar.gz
rust-61a14fcea05f8e9a544a5557b98633f7ace65109.zip
Require `target_has_atomic = "ptr"` for runtime feature detection
The `feature_detect` module is currently being built on all targets, but
the use of `AtomicU32` causes a problem if atomics are not available
(such as with `bpfel-unknown-none`). Gate this module behind
`target_has_atomic = "ptr"`.

The below now completes successfully:

    cargo build -p compiler_builtins --target=bpfel-unknown-none -Z build-std=core

Fixes: https://github.com/rust-lang/compiler-builtins/issues/908
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions