Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
14dd4e9
rustc_llvm: Link to `zlib` on dragonfly
Aug 1, 2023
b462967
Use pointers instead of `usize` addresses for landing pads
niluxv Aug 5, 2023
6ef7813
rustc_llvm: Link `zlib` on cross Solaris builds
Aug 8, 2023
a10751f
Rewrite `read_encoded_pointer` conforming to strict provenance
niluxv Aug 6, 2023
107cd8e
Add alignment to the NPO guarantee
scottmcm Aug 15, 2023
90f5f94
Use `OnceLock` for `SingleCache`
Zoxc Aug 31, 2023
dc37959
kmc-solid: Directly delegate to `net::is_interrupted` in `std::sys::s…
kawadakk Sep 1, 2023
eb627ea
kmc-solid: Refactor `is_interrupted` to avoid integer overflow
kawadakk Sep 1, 2023
b62eeb2
Fall through when resolving elided assoc const lifetimes
compiler-errors Sep 1, 2023
570c312
Const-stabilize `is_ascii`
scottmcm Sep 1, 2023
8198c59
Add spastorino on vacation
spastorino Sep 1, 2023
04a1804
Rollup merge of #114349 - inferiorhumanorgans:dragonfly-link-libz, r=…
fmease Sep 2, 2023
99e3f3b
Rollup merge of #114534 - niluxv:strict_prov_unwind, r=cuviper
fmease Sep 2, 2023
b2d98ab
Rollup merge of #114845 - scottmcm:npo-align, r=WaffleLapkin
fmease Sep 2, 2023
e808280
Rollup merge of #115422 - Zoxc:cache-once-lock, r=cjgillot
fmease Sep 2, 2023
b9980f3
Rollup merge of #115427 - solid-rs:patch/kmc-solid/is-interrupted, r=…
fmease Sep 2, 2023
1f3174e
Rollup merge of #115429 - compiler-errors:assoc-ct-lt-fallthrough, r=…
fmease Sep 2, 2023
43d963d
Rollup merge of #115449 - scottmcm:stable-const-is-ascii, r=ChrisDenton
fmease Sep 2, 2023
c08ad39
Rollup merge of #115456 - spastorino:spastorino-vacation, r=spastorino
fmease Sep 2, 2023
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
Prev Previous commit
Next Next commit
rustc_llvm: Link zlib on cross Solaris builds
On native builds `llvm-config` picks up `zlib` and this gets pased into
the rust build tools, but on cross builds `llvm-config` is explicitly
ignored as it contains information for the host system and cannot be
trusted to be accurate for the target system.

Both DragonFly and Solaris contain `zlib` in the base system, so this is
both a safe assumption and required for a successful cross build unless
`zlib` support is disabled in LLVM.

This is more or less in the same vein as #75713 and #75655.
  • Loading branch information
Alex Zepeda committed Aug 8, 2023
commit 6ef7813cf0a7f591ec6709e06a4ce1c1ebc8f223
4 changes: 3 additions & 1 deletion compiler/rustc_llvm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ fn main() {
} else if target.contains("windows-gnu") {
println!("cargo:rustc-link-lib=shell32");
println!("cargo:rustc-link-lib=uuid");
} else if target.contains("haiku") || target.contains("darwin") || target.contains("dragonfly")
} else if target.contains("haiku")
|| target.contains("darwin")
|| (is_crossed && (target.contains("dragonfly") || target.contains("solaris")))
{
println!("cargo:rustc-link-lib=z");
} else if target.contains("netbsd") {
Expand Down