[llvm] [dbginfo-tests] Use -march instead of -arch to avoid getting an error for non-darwin targets. (PR #98977)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 15 16:40:44 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 290537238b45106e30bb082b9affde345d8a5482 49b9d82958e1e603b7dd9039405f1df4ed393e45 --extensions c -- cross-project-tests/debuginfo-tests/llgdb-tests/asan.c cross-project-tests/debuginfo-tests/llgdb-tests/safestack.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/cross-project-tests/debuginfo-tests/llgdb-tests/asan.c b/cross-project-tests/debuginfo-tests/llgdb-tests/asan.c
index d281b867ff..f504a36161 100644
--- a/cross-project-tests/debuginfo-tests/llgdb-tests/asan.c
+++ b/cross-project-tests/debuginfo-tests/llgdb-tests/asan.c
@@ -1,6 +1,6 @@
-// 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
+// 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
// compiler-rt. Only run this test on non-asanified configurations.
// XFAIL: !system-darwin && gdb-clang-incompatibility
diff --git a/cross-project-tests/debuginfo-tests/llgdb-tests/safestack.c b/cross-project-tests/debuginfo-tests/llgdb-tests/safestack.c
index 5d17aa2bbd..a2a3bda7b1 100644
--- a/cross-project-tests/debuginfo-tests/llgdb-tests/safestack.c
+++ b/cross-project-tests/debuginfo-tests/llgdb-tests/safestack.c
@@ -1,7 +1,6 @@
-// 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
+// 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
// Zorg configures the ASAN stage2 bots to not build the
// safestack compiler-rt. Only run this test on
// non-asanified configurations.
``````````
</details>
https://github.com/llvm/llvm-project/pull/98977
More information about the llvm-commits
mailing list