Skip to content

Commit a581154

Browse files
committed
Don't set TARGET for non run-make tests
If something like this is needed again in the future, please set environment variables for the build and run subprocesses, instead of setting them on the compiletest process.
1 parent ff0c096 commit a581154

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

  • src/tools/compiletest/src

‎src/tools/compiletest/src/lib.rs‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -525,11 +525,6 @@ fn run_tests(config: Arc<Config>) {
525525
// SAFETY: at this point we're still single-threaded.
526526
unsafe{ env::set_var("__COMPAT_LAYER","RunAsInvoker")};
527527

528-
// Let tests know which target they're running as.
529-
//
530-
// SAFETY: at this point we're still single-threaded.
531-
unsafe{ env::set_var("TARGET",&config.target)};
532-
533528
letmut configs = Vec::new();
534529
ifletTestMode::DebugInfo = config.mode{
535530
// Debugging emscripten code doesn't make sense today

0 commit comments

Comments
 (0)