Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
e8ce9fa
Add tests to ensure MTE tags are preserved across FFI boundaries
dheaton-arm Jun 13, 2024
ba5ff07
Introduce create_dll_import_libs function
bjorn3 Jul 25, 2024
ee89db9
Move temp file name generation out of the create_dll_import_lib method
bjorn3 Jul 25, 2024
bb764bd
Move is_mingw_gnu_toolchain and i686_decorated_name to cg_ssa
bjorn3 Jul 25, 2024
3c987cb
Move computation of decorated names out of the create_dll_import_lib …
bjorn3 Jul 25, 2024
216686b
Move mingw dlltool invocation to cg_ssa
bjorn3 Jul 25, 2024
732037c
Remove redundant information and simplify `only` condition
dheaton-arm Jul 31, 2024
44da6fa
Update ar_archive_writer to 0.3.2
bjorn3 Jul 25, 2024
1737845
Enable msvc for run-make/rust-lld
ChrisDenton Aug 4, 2024
1054054
rewrite simd-ffi to rmake
Oneirical Aug 5, 2024
51e68c3
Update `compiler-builtins` to 0.1.117
tgross35 Aug 5, 2024
74653b6
Add implied target features to target_feature attribute
calebzulawski Jul 26, 2024
22c5952
Add test to ensure implied target features work with asm, and fix fai…
calebzulawski Jul 26, 2024
520a5a5
Fix codegen tests
calebzulawski Jul 26, 2024
c866e1f
Add missing features
calebzulawski Jul 29, 2024
34f29a2
Add +sse4.2 due to #128426
calebzulawski Jul 31, 2024
3c48f65
Bless tests
calebzulawski Jul 31, 2024
fbd618d
Refactor and fill out target feature lists
calebzulawski Aug 2, 2024
484aca8
Don't use LLVM's target features
calebzulawski Aug 3, 2024
a25da07
Don't use LLVM to compute -Ctarget-feature
calebzulawski Aug 4, 2024
5006711
Remove redundant implied features
calebzulawski Aug 4, 2024
6b96a60
Add implied features to non-target-feature functions
calebzulawski Aug 4, 2024
83276f5
Hide implicit target features from diagnostics when possible
calebzulawski Aug 5, 2024
0b98a0c
Fix typo
calebzulawski Aug 5, 2024
8818c95
Disallow enabling features without their implied features
calebzulawski Aug 6, 2024
c8eacd6
Specify a minimum supported version for VxWorks
devnexen Aug 6, 2024
6c96eb4
Rollup merge of #128206 - bjorn3:import_lib_writing_refactor, r=jieyouxu
tgross35 Aug 7, 2024
044456d
Rollup merge of #128221 - calebzulawski:implied-target-features, r=Am…
tgross35 Aug 7, 2024
492b55c
Rollup merge of #128384 - dheaton-arm:mte-test, r=jieyouxu
tgross35 Aug 7, 2024
009a914
Rollup merge of #128656 - ChrisDenton:rust-lld, r=lqd
tgross35 Aug 7, 2024
97bc01b
Rollup merge of #128691 - tgross35:update-builtins, r=Amanieu
tgross35 Aug 7, 2024
e4e38fc
Rollup merge of #128700 - Oneirical:i-ffind-these-tests-quite-simdple…
tgross35 Aug 7, 2024
a1e70ad
Rollup merge of #128758 - devnexen:vxworks_release_min, r=tgross35
tgross35 Aug 7, 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
Prev Previous commit
Next Next commit
Enable msvc for run-make/rust-lld
This is simply a matter of using the right argument for lld-link.
  • Loading branch information
ChrisDenton committed Aug 5, 2024
commit 1737845cb41c3eefe5318fd6bb8db4dbabe03f69
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