Remove use of RUSTC_COMPILETEST env var
This commit is contained in:
parent
d2c53f8b4d
commit
77dec3b03a
2 changed files with 1 additions and 3 deletions
|
|
@ -279,8 +279,6 @@ impl TransCrate for MetadataOnlyTransCrate {
|
|||
sess.abort_if_errors();
|
||||
if !sess.opts.crate_types.contains(&CrateType::CrateTypeRlib)
|
||||
&& !sess.opts.crate_types.contains(&CrateType::CrateTypeDylib)
|
||||
// Don't error when running under compiletest
|
||||
&& ::std::env::var("RUSTC_COMPILETEST") != Ok("1".to_string())
|
||||
{
|
||||
sess.fatal("Executables are not supported by the metadata-only backend.");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1278,7 +1278,7 @@ impl<'test> TestCx<'test> {
|
|||
TargetLocation::ThisFile(self.make_exe_name()),
|
||||
);
|
||||
|
||||
rustc.arg("-L").arg(&self.aux_output_dir_name()).env("RUSTC_COMPILETEST", "1");
|
||||
rustc.arg("-L").arg(&self.aux_output_dir_name());
|
||||
|
||||
match self.config.mode {
|
||||
CompileFail | Ui => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue