Skip to content
Open
Changes from all commits
Commits
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
11 changes: 4 additions & 7 deletions tests/run-make/macos-deployment-target-warning/rmake.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
//@ only-apple
//! Tests that deployment target linker warnings are shown as `linker-info`, not `linker-messages`

//@ only-macos

use run_make_support::external_deps::c_cxx_compiler::cc;
use run_make_support::external_deps::llvm::llvm_ar;
use run_make_support::{bare_rustc, diff};
use run_make_support::{diff, rustc};

fn main() {
let cwd = std::env::current_dir().unwrap().to_str().unwrap().to_owned();

cc().arg("-c").arg("-mmacosx-version-min=15.5").output("foo.o").input("foo.c").run();
llvm_ar().obj_to_ar().output_input("libfoo.a", "foo.o").run();

let warnings = bare_rustc()
.arg("-L")
.arg(format!("native={cwd}"))
let warnings = rustc()
.arg("-lstatic=foo")
.link_arg("-mmacosx-version-min=11.2")
.input("main.rs")
Expand Down
Loading