X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fcompiletest%2Fcommon.rs;h=e66094dc3954b9d4bf7c13a0e8c3b6f3980e9373;hb=862911df9af8216edc94458df2084143aad7be5b;hp=dcac32ccb8a40564eb2217cca1c409f0ccdc7f3f;hpb=e9080ec39d9a44eb0773d648b348575b19f655e5;p=rust.git diff --git a/src/compiletest/common.rs b/src/compiletest/common.rs index dcac32ccb8a..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) } } @@ -80,9 +83,6 @@ pub struct Config { // The python executable pub python: String, - // The clang executable - pub clang_path: Option, - // The llvm binaries path pub llvm_bin_path: Option, @@ -127,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,