about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLuqman Aden <me@luqman.ca>2013-03-19 16:36:06 -0700
committerLuqman Aden <me@luqman.ca>2013-03-19 16:36:06 -0700
commit480e9ff8dfc3d5d8dc73145579143d0d1bc5aba4 (patch)
tree8a5976088b4a0c07ba0b5ae5c2dbb5a061708b28
parent6450ee91beada599a86f0020e438608ca2a13850 (diff)
downloadrust-480e9ff8dfc3d5d8dc73145579143d0d1bc5aba4.tar.gz
rust-480e9ff8dfc3d5d8dc73145579143d0d1bc5aba4.zip
compiletest: Make pretty tests actually use compile-flags.
-rw-r--r--src/compiletest/runtest.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs
index 03f3fa9fcf6..2eb44ba6815 100644
--- a/src/compiletest/runtest.rs
+++ b/src/compiletest/runtest.rs
@@ -208,11 +208,11 @@ actual:\n\
                         testfile: &Path, src: ~str) -> ProcRes {
         compose_and_run_compiler(
             config, props, testfile,
-            make_typecheck_args(config, testfile),
+            make_typecheck_args(config, props, testfile),
             Some(src))
     }
 
-    fn make_typecheck_args(config: config, testfile: &Path) -> ProcArgs {
+    fn make_typecheck_args(config: config, props: TestProps, testfile: &Path) -> ProcArgs {
         let prog = config.rustc_path;
         let mut args = ~[~"-",
                          ~"--no-trans", ~"--lib",
@@ -220,6 +220,7 @@ actual:\n\
                          ~"-L",
                          aux_output_dir_name(config, testfile).to_str()];
         args += split_maybe_args(config.rustcflags);
+        args += split_maybe_args(props.compile_flags);
         return ProcArgs {prog: prog.to_str(), args: args};
     }
 }