X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fcompiletest%2Fcommon.rs;h=e66094dc3954b9d4bf7c13a0e8c3b6f3980e9373;hb=862911df9af8216edc94458df2084143aad7be5b;hp=3f34c89d18fb29dad2ba6076ea629ee01b00ee50;hpb=3fd41d61abba6df2d454c0a94f8f86ed14a4ba00;p=rust.git diff --git a/src/compiletest/common.rs b/src/compiletest/common.rs index 3f34c89d18f..e66094dc395 100644 --- a/src/compiletest/common.rs +++ b/src/compiletest/common.rs @@ -25,6 +25,7 @@ pub enum Mode { DebugInfoLldb, Codegen, Rustdoc, + CodegenUnits } impl FromStr for Mode { @@ -41,6 +42,7 @@ fn from_str(s: &str) -> Result { "debuginfo-gdb" => Ok(DebugInfoGdb), "codegen" => Ok(Codegen), "rustdoc" => Ok(Rustdoc), + "codegen-units" => Ok(CodegenUnits), _ => Err(()), } } @@ -59,6 +61,7 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { DebugInfoLldb => "debuginfo-lldb", Codegen => "codegen", Rustdoc => "rustdoc", + CodegenUnits => "codegen-units", }, f) } } @@ -124,9 +127,6 @@ pub struct Config { // Flags to pass to the compiler when building for the target pub target_rustcflags: Option, - // Run tests using the JIT - pub jit: bool, - // Target system to be tested pub target: String,