Skip to content

Commit 5fdd5c2

Browse files
committed
Try to fix AppVeyor Windows builds
By working around Manishearth/compiletest-rs#81 Signed-off-by: Mohammad AlSaleh <[email protected]>
1 parent bcce8c3 commit 5fdd5c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/compiletest.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ fn run_mode(mode: &'static str) {
99

1010
config.mode = mode.parse().expect("Invalid mode");
1111
config.src_base = PathBuf::from(format!("tests/{}", mode));
12-
config.link_deps(); // Populate config.target_rustcflags with dependencies on the path
12+
// Try populating rustflags directly to avoid compiletest-rs #81
13+
// config.link_deps(); // Populate config.target_rustcflags with dependencies on the path
14+
config.target_rustcflags = Some("-L target/debug".to_string());
1315
config.clean_rmeta(); // If your tests import the parent crate, this helps with E0464
1416

1517
compiletest::run_tests(&config);

0 commit comments

Comments
 (0)