From c62ef2e807577f12f12b72bba7a506f5daf1f48f Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 19 Jan 2014 16:08:48 -0800 Subject: [PATCH] Fix cross-compiled pretty tests They need to read the metadata of cross-compiled crates, so the pretty things need to have the right target. --- src/compiletest/runtest.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index 9ebc8236f6fec..d0a0603081840 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -206,7 +206,8 @@ fn run_pretty_test(config: &config, props: &TestProps, testfile: &Path) { } fn make_pp_args(config: &config, _testfile: &Path) -> ProcArgs { - let args = ~[~"-", ~"--pretty", ~"normal"]; + let args = ~[~"-", ~"--pretty", ~"normal", + ~"--target=" + config.target]; // FIXME (#9639): This needs to handle non-utf8 paths return ProcArgs {prog: config.rustc_path.as_str().unwrap().to_owned(), args: args}; }