Skip to content

Commit db12c1b

Browse files
committed
tests: adjust symbols-all-mangled to build target artifacts
- Ignore nvptx that needs target std. - Ignore targets that don't support cdylib.
1 parent bacdd62 commit db12c1b

File tree

1 file changed

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

1 file changed

+6
-4
lines changed

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

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
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)
4+
//@ needs-crate-type: cdylib
35

46
use run_make_support::object::read::{Object, ObjectSymbol};
5-
use run_make_support::{bin_name, dynamic_lib_name, object, rfs, rustc, static_lib_name};
7+
use run_make_support::{bin_name, dynamic_lib_name, object, rfs, rustc, static_lib_name, target};
68

79
fn main() {
810
let staticlib_name = static_lib_name("a_lib");
911
let cdylib_name = dynamic_lib_name("a_lib");
1012
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();
13+
rustc().target(target()).crate_type("cdylib").input("a_lib.rs").run();
14+
rustc().target(target()).crate_type("staticlib").input("a_lib.rs").run();
15+
rustc().target(target()).crate_type("bin").input("an_executable.rs").run();
1416

1517
symbols_check_archive(&staticlib_name);
1618
symbols_check(&cdylib_name);

0 commit comments

Comments
 (0)