Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e477732
Don't strip shebang in expr-ctxt `include!(…)`
fmease Sep 9, 2025
faf06cc
tests/assembly-llvm/some-non-zero-from-atomic-optimization.rs: New test
Enselic Dec 4, 2025
df38e15
Add const default for OnceCell and OnceLock
tisonkun Dec 9, 2025
0428dd5
miri: add -Zbinary-dep-depinfo to dependency builds
RalfJung Dec 11, 2025
e39e127
libtest: Stricter XML validation
ilammy Dec 13, 2025
2cc4348
rustdoc: Test --format=junit
ilammy Dec 13, 2025
069cf9d
rustdoc: Write newline differently
ilammy Nov 29, 2025
cc68f22
Enable llvm-libunwind by default for Hexagon targets
androm3da Dec 14, 2025
3493f8c
fix docustring on fetch_or
agavra Dec 15, 2025
a8f4a67
rustdoc: Test only in stage2
ilammy Dec 16, 2025
897e88c
add test for 149980
jdonszelmann Dec 19, 2025
c316c05
refactor how eii expansion is wrapped fixing 149980
jdonszelmann Dec 19, 2025
19f74f4
Use the same length type for `TestableCase::Slice` and `TestKind::Len`
Zalathar Dec 20, 2025
5d8a096
change non-canonical clone impl to {*self}, fix some doc comments
hkBst Dec 19, 2025
93fbf3b
Drop the From derive macro from the v1 prelude
jtgeibel Dec 20, 2025
7e167d1
Update books
rustbot Dec 20, 2025
8825e1f
library/coretests/tests/fmt/mod.rs: Add HRTB fn pointer case
Enselic Dec 17, 2025
d2f9640
Rollup merge of #146377 - fmease:no-incl-shebang-expr, r=Urgau
Zalathar Dec 21, 2025
0d619c0
Rollup merge of #149437 - ilammy:patch-1, r=Mark-Simulacrum
Zalathar Dec 21, 2025
92053bf
Rollup merge of #149658 - Enselic:non-zero-opt, r=Mark-Simulacrum
Zalathar Dec 21, 2025
faf4bb8
Rollup merge of #149812 - tisonkun:oncelock-const-default, r=Mark-Sim…
Zalathar Dec 21, 2025
91077be
Rollup merge of #149882 - RalfJung:miri-dep-build, r=Mark-Simulacrum
Zalathar Dec 21, 2025
b60c046
Rollup merge of #150009 - androm3da:bcain/hex_unwind, r=Mark-Simulacrum
Zalathar Dec 21, 2025
6965028
Rollup merge of #150035 - agavra:patch-1, r=Mark-Simulacrum
Zalathar Dec 21, 2025
fd26b32
Rollup merge of #150082 - Enselic:hrtb-fn-pointer, r=fee1-dead
Zalathar Dec 21, 2025
42f84ba
Rollup merge of #150160 - jdonszelmann:fix-149980, r=Kivooeo
Zalathar Dec 21, 2025
a8fb975
Rollup merge of #150184 - Zalathar:slice-len, r=saethlin
Zalathar Dec 21, 2025
ecf6c02
Rollup merge of #150191 - hkBst:clippy-fix-15, r=Kivooeo
Zalathar Dec 21, 2025
cce4338
Rollup merge of #150203 - jtgeibel:drop-From-derive-macro-from-prelud…
Zalathar Dec 21, 2025
073fec4
Rollup merge of #150208 - rustbot:docs-update, r=ehuss
Zalathar Dec 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion library/unwind/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,28 @@ cfg_select! {
}
_ => {
#[link(name = "unwind", kind = "static", modifiers = "-bundle", cfg(target_feature = "crt-static"))]
#[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
#[link(name = "gcc_s", cfg(all(not(target_feature = "crt-static"), not(target_arch = "hexagon"))))]
unsafe extern "C" {}
}
}

// Hexagon with musl uses llvm-libunwind by default
#[cfg(all(target_env = "musl", target_arch = "hexagon"))]
cfg_select! {
feature = "llvm-libunwind" => {
#[link(name = "unwind", kind = "static", modifiers = "-bundle")]
unsafe extern "C" {}
}
feature = "system-llvm-libunwind" => {
#[link(name = "unwind", kind = "static", modifiers = "-bundle", cfg(target_feature = "crt-static"))]
#[link(name = "unwind", cfg(not(target_feature = "crt-static")))]
unsafe extern "C" {}
}
_ => {
// Fallback: should not happen since hexagon defaults to llvm-libunwind
}
}

// This is the same as musl except that we default to using the system libunwind
// instead of libgcc.
#[cfg(target_env = "ohos")]
Expand Down
5 changes: 4 additions & 1 deletion src/bootstrap/src/core/build_steps/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,10 @@ fn copy_third_party_objects(

if target == "x86_64-fortanix-unknown-sgx"
|| builder.config.llvm_libunwind(target) == LlvmLibunwind::InTree
&& (target.contains("linux") || target.contains("fuchsia") || target.contains("aix"))
&& (target.contains("linux")
|| target.contains("fuchsia")
|| target.contains("aix")
|| target.contains("hexagon"))
{
let libunwind_path =
copy_llvm_libunwind(builder, target, &builder.sysroot_target_libdir(*compiler, target));
Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap/src/core/config/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1856,7 +1856,7 @@ impl Config {
.get(&target)
.and_then(|t| t.llvm_libunwind)
.or(self.llvm_libunwind_default)
.unwrap_or(if target.contains("fuchsia") {
.unwrap_or(if target.contains("fuchsia") || target.contains("hexagon") {
LlvmLibunwind::InTree
} else {
LlvmLibunwind::No
Expand Down