about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAna Hobden <operator@hoverbear.org>2024-06-12 13:16:28 -0700
committerAna Hobden <operator@hoverbear.org>2024-06-14 08:08:42 -0700
commitf3dd4b16bcb90b96c0617415725aecc57e41f4b9 (patch)
tree8161689683ff1a846fb507db441dd607a0e18abd
parentf9515fdd5aa132e27d9b580a35b27f4b453251c1 (diff)
downloadrust-f3dd4b16bcb90b96c0617415725aecc57e41f4b9.tar.gz
rust-f3dd4b16bcb90b96c0617415725aecc57e41f4b9.zip
Pass target to run-make issue-47551
-rw-r--r--tests/run-make/issue-47551/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/run-make/issue-47551/Makefile b/tests/run-make/issue-47551/Makefile
index 5a6ac725701..3fe0a6e74e0 100644
--- a/tests/run-make/issue-47551/Makefile
+++ b/tests/run-make/issue-47551/Makefile
@@ -4,6 +4,7 @@
 include ../tools.mk
 
 all:
-	$(RUSTC) eh_frame-terminator.rs
+	# --target $(TARGET) ensures the right gcc flags are used for cross compilation
+	$(RUSTC) --target $(TARGET) eh_frame-terminator.rs
 	$(call RUN,eh_frame-terminator) | $(CGREP) '1122334455667788'
 	objdump --dwarf=frames $(TMPDIR)/eh_frame-terminator | $(CGREP) 'ZERO terminator'