From ae769f930e2510e57ed8bd379b1b2d393b2312c3 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Wed, 12 Jun 2024 13:16:47 -0700 Subject: [PATCH] Pass target to run-make inaccessible-temp-dir --- tests/run-make/inaccessible-temp-dir/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run-make/inaccessible-temp-dir/Makefile b/tests/run-make/inaccessible-temp-dir/Makefile index abdba4eb86145..840274a4e3fcc 100644 --- a/tests/run-make/inaccessible-temp-dir/Makefile +++ b/tests/run-make/inaccessible-temp-dir/Makefile @@ -24,7 +24,7 @@ all: # Run rustc with `-Ztemps-dir` set to a directory # *inside* the inaccessible one, so that it can't create it - $(RUSTC) program.rs -Ztemps-dir=$(TMPDIR)/inaccessible/tmp 2>&1 \ + $(RUSTC) program.rs --target "${TARGET}" -Ztemps-dir=$(TMPDIR)/inaccessible/tmp 2>&1 \ | $(CGREP) 'failed to find or create the directory specified by `--temps-dir`' # Make the inaccessible directory accessible,