Skip to content

Commit 9ced69d

Browse files
committed
Rollup merge of rust-lang#50787 - ehuss:fix-run-make-wasm, r=alexcrichton
Fix run-make wasm tests Fixes rust-lang#50711
2 parents 380066b + a90a963 commit 9ced69d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/bootstrap/test.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ test!(RunFailFullDepsPretty {
838838
host: true
839839
});
840840

841-
host_test!(RunMake {
841+
default_test!(RunMake {
842842
path: "src/test/run-make",
843843
mode: "run-make",
844844
suite: "run-make"
@@ -1041,7 +1041,7 @@ impl Step for Compiletest {
10411041

10421042
// Only pass correct values for these flags for the `run-make` suite as it
10431043
// requires that a C++ compiler was configured which isn't always the case.
1044-
if !builder.config.dry_run && mode == "run-make" {
1044+
if !builder.config.dry_run && suite == "run-make-fulldeps" {
10451045
let llvm_components = output(Command::new(&llvm_config).arg("--components"));
10461046
let llvm_cxxflags = output(Command::new(&llvm_config).arg("--cxxflags"));
10471047
cmd.arg("--cc").arg(builder.cc(target))
@@ -1054,13 +1054,13 @@ impl Step for Compiletest {
10541054
}
10551055
}
10561056
}
1057-
if mode == "run-make" && !builder.config.llvm_enabled {
1057+
if suite == "run-make-fulldeps" && !builder.config.llvm_enabled {
10581058
builder.info(
10591059
&format!("Ignoring run-make test suite as they generally don't work without LLVM"));
10601060
return;
10611061
}
10621062

1063-
if mode != "run-make" {
1063+
if suite != "run-make-fulldeps" {
10641064
cmd.arg("--cc").arg("")
10651065
.arg("--cxx").arg("")
10661066
.arg("--cflags").arg("")

src/test/run-make/cross-lang-lto/Makefile renamed to src/test/run-make-fulldeps/cross-lang-lto/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# min-llvm-version 4.0
33
# ignore-mingw
44

5-
-include ../../run-make-fulldeps/tools.mk
5+
-include ../tools.mk
66

77
# This test makes sure that the expected .llvmbc sections for use by
88
# linker-based LTO are available in object files when compiling with

src/tools/compiletest/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,8 @@ pub fn is_test(file_name: &OsString) -> bool {
614614
}
615615

616616
pub fn make_test(config: &Config, testpaths: &TestPaths) -> test::TestDescAndFn {
617-
618617
let early_props = if config.mode == Mode::RunMake {
618+
// Allow `ignore` directives to be in the Makefile.
619619
EarlyProps::from_file(config, &testpaths.file.join("Makefile"))
620620
} else {
621621
EarlyProps::from_file(config, &testpaths.file)

0 commit comments

Comments
 (0)