[llvm] [dbginfo-tests] Use -march instead of -arch to avoid getting an error for non-darwin targets. (PR #98977)

Wolfgang Pieb via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 15 16:36:34 PDT 2024


https://github.com/wolfy1961 created https://github.com/llvm/llvm-project/pull/98977

Our upstream buildbot is getting an error with the -arch option on Ubuntu-22. Not sure why this isn't showing up anywhere else. Using -march instead, but is that OK with you @adrian-prantl ?

>From 49b9d82958e1e603b7dd9039405f1df4ed393e45 Mon Sep 17 00:00:00 2001
From: wpieb <Wolfgang.Pieb at sony.com>
Date: Mon, 15 Jul 2024 16:25:19 -0700
Subject: [PATCH] [dbginfo-tests] Use -march instead of -arch to avoid getting
 an error for non-darwin targets.

---
 cross-project-tests/debuginfo-tests/llgdb-tests/asan.c      | 2 +-
 cross-project-tests/debuginfo-tests/llgdb-tests/safestack.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cross-project-tests/debuginfo-tests/llgdb-tests/asan.c b/cross-project-tests/debuginfo-tests/llgdb-tests/asan.c
index e0bfa7bfb913d..d281b867ff299 100644
--- a/cross-project-tests/debuginfo-tests/llgdb-tests/asan.c
+++ b/cross-project-tests/debuginfo-tests/llgdb-tests/asan.c
@@ -1,4 +1,4 @@
-// RUN: %clang -fblocks %target_itanium_abi_host_triple -arch x86_64 %s -o %t.out -g -fsanitize=address
+// RUN: %clang -fblocks %target_itanium_abi_host_triple -march=x86-64 %s -o %t.out -g -fsanitize=address
 // RUN: %test_debuginfo %s %t.out
 // REQUIRES: !asan, compiler-rt
 //           Zorg configures the ASAN stage2 bots to not build the asan
diff --git a/cross-project-tests/debuginfo-tests/llgdb-tests/safestack.c b/cross-project-tests/debuginfo-tests/llgdb-tests/safestack.c
index b2feab56de81d..5d17aa2bbd481 100644
--- a/cross-project-tests/debuginfo-tests/llgdb-tests/safestack.c
+++ b/cross-project-tests/debuginfo-tests/llgdb-tests/safestack.c
@@ -1,4 +1,4 @@
-// RUN: %clang %target_itanium_abi_host_triple -arch x86_64 %s -o %t.out -g -fsanitize=safe-stack
+// RUN: %clang %target_itanium_abi_host_triple -march=x86-64 %s -o %t.out -g -fsanitize=safe-stack
 // RUN: %test_debuginfo %s %t.out
 // UNSUPPORTED: system-darwin
 // REQUIRES: !asan, compiler-rt



More information about the llvm-commits mailing list