Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit dafec3a

Browse files
committed
tests: adjust symbols-all-mangled to build target artifacts
And ignore nvptx that needs target std.
1 parent ff744f0 commit dafec3a

File tree

1 file changed

+5
-4
lines changed
  • tests/run-make/symbols-all-mangled

1 file changed

+5
-4
lines changed

tests/run-make/symbols-all-mangled/rmake.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
// Check that all symbols in cdylibs, staticlibs and bins are mangled
22
//@ only-elf some object file formats create multiple symbols for each function with different names
3+
//@ ignore-nvptx64 (needs target std)
34

45
use run_make_support::object::read::{Object, ObjectSymbol};
5-
use run_make_support::{bin_name, dynamic_lib_name, object, rfs, rustc, static_lib_name};
6+
use run_make_support::{bin_name, dynamic_lib_name, object, rfs, rustc, static_lib_name, target};
67

78
fn main() {
89
let staticlib_name = static_lib_name("a_lib");
910
let cdylib_name = dynamic_lib_name("a_lib");
1011
let exe_name = bin_name("an_executable");
11-
rustc().crate_type("cdylib").input("a_lib.rs").run();
12-
rustc().crate_type("staticlib").input("a_lib.rs").run();
13-
rustc().crate_type("bin").input("an_executable.rs").run();
12+
rustc().target(target()).crate_type("cdylib").input("a_lib.rs").run();
13+
rustc().target(target()).crate_type("staticlib").input("a_lib.rs").run();
14+
rustc().target(target()).crate_type("bin").input("an_executable.rs").run();
1415

1516
symbols_check_archive(&staticlib_name);
1617
symbols_check(&cdylib_name);

0 commit comments

Comments
 (0)