Skip to content
Closed
Changes from 2 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
468f935
std::thread: available_parallelism implementation for vxWorks proposal.
devnexen Jul 21, 2024
c2523c9
Use object in run-make/symbols-visibility
ChrisDenton Aug 3, 2024
36a8059
Remove unnecessary constants from flt2dec dragon
swenson Aug 3, 2024
f28d157
Update rmake.rs
ChrisDenton Aug 3, 2024
b94a9c1
Remove skipping symbols with the `__imp_` prefix
ChrisDenton Aug 3, 2024
f9d7e4c
Remove cygpath from run-make-support
ChrisDenton Aug 3, 2024
b46237b
Enable msvc for zero-extend-abi-param-passing
ChrisDenton Aug 4, 2024
2e5341a
Enable msvc for no-duplicate-libs
ChrisDenton Aug 4, 2024
249afea
docs(resolve): more explain about `target`
bvanjoi Aug 4, 2024
d8c2b76
run-make: enable msvc for link-dedup
ChrisDenton Aug 4, 2024
3268b2e
Enable msvc for link-args-order
ChrisDenton Aug 4, 2024
d6c9d64
Enable msvc for run-make/rust-lld
ChrisDenton Aug 4, 2024
69de294
tests: more crashes
matthiaskrgr Aug 4, 2024
249d686
rustdoc: Rename `SelfTy` to `ReceiverTy`
camelid Jul 31, 2024
664b3ff
rustdoc: Create `SelfTy` to replace `Generic(kw::SelfUpper)`
camelid Jul 31, 2024
4e348fa
rustdoc: Stop treating `Self` as a generic in search index
camelid Aug 1, 2024
e452e3d
Use `match` instead of sequence of `if let`s
camelid Aug 1, 2024
b4f77df
rustdoc: Delete `ReceiverTy` (formerly known as `SelfTy`)
camelid Aug 1, 2024
dac7f20
Add test for `Self` not being a generic in search index
camelid Aug 1, 2024
e5bda6b
Rollup merge of #128026 - devnexen:available_parallelism_vxworks, r=M…
ChrisDenton Aug 5, 2024
85b5336
Rollup merge of #128471 - camelid:rustdoc-self, r=notriddle
ChrisDenton Aug 5, 2024
a0680f8
Rollup merge of #128607 - ChrisDenton:visibility, r=jieyouxu
ChrisDenton Aug 5, 2024
6d09f23
Rollup merge of #128609 - swenson:smaller-faster-dragon, r=Amanieu
ChrisDenton Aug 5, 2024
0fb82fc
Rollup merge of #128611 - ChrisDenton:cygpath, r=jieyouxu
ChrisDenton Aug 5, 2024
b72412a
Rollup merge of #128630 - bvanjoi:resolve-comment, r=petrochenkov
ChrisDenton Aug 5, 2024
702a8cc
Rollup merge of #128638 - ChrisDenton:link-dedup, r=jieyouxu
ChrisDenton Aug 5, 2024
10f32e1
Rollup merge of #128647 - ChrisDenton:link-args-order, r=jieyouxu
ChrisDenton Aug 5, 2024
b8ac571
Rollup merge of #128649 - ChrisDenton:param-passing, r=jieyouxu
ChrisDenton Aug 5, 2024
98055e3
Rollup merge of #128656 - ChrisDenton:rust-lld, r=lqd
ChrisDenton Aug 5, 2024
a832b63
Rollup merge of #128660 - matthiaskrgr:niceice, r=compiler-errors
ChrisDenton Aug 5, 2024
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
14 changes: 8 additions & 6 deletions tests/run-make/rust-lld/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,25 @@
// see https://github.com/rust-lang/compiler-team/issues/510 for more info

//@ needs-rust-lld
//@ ignore-msvc
//@ ignore-s390x lld does not yet support s390x as target

use std::process::Output;

use run_make_support::regex::Regex;
use run_make_support::rustc;
use run_make_support::{is_msvc, rustc};

fn main() {
// lld-link is used if msvc, otherwise a gnu-compatible lld is used.
let linker_version_flag = if is_msvc() { "--version" } else { "Wl,-v" };

// Opt-in to lld and the self-contained linker, to link with rust-lld. We'll check that by
// asking the linker to display its version number with a link-arg.
let output = rustc()
.env("RUSTC_LOG", "rustc_codegen_ssa::back::link=info")
.arg("-Zlinker-features=+lld")
.arg("-Clink-self-contained=+linker")
.arg("-Zunstable-options")
.link_arg("-Wl,-v")
.link_arg(linker_version_flag)
.input("main.rs")
.run();
assert!(
Expand All @@ -27,10 +29,10 @@ fn main() {
output.stderr_utf8()
);

// It should not be used when we explictly opt-out of lld.
// It should not be used when we explicitly opt-out of lld.
let output = rustc()
.env("RUSTC_LOG", "rustc_codegen_ssa::back::link=info")
.link_arg("-Wl,-v")
.link_arg(linker_version_flag)
.arg("-Zlinker-features=-lld")
.input("main.rs")
.run();
Expand All @@ -44,7 +46,7 @@ fn main() {
// times to rustc.
let output = rustc()
.env("RUSTC_LOG", "rustc_codegen_ssa::back::link=info")
.link_arg("-Wl,-v")
.link_arg(linker_version_flag)
.arg("-Clink-self-contained=+linker")
.arg("-Zunstable-options")
.arg("-Zlinker-features=-lld")
Expand Down