https://github.com/ita-sc created 
https://github.com/llvm/llvm-project/pull/89760

Hi

It seems that by default
```
# On non-Apple platforms, -arch becomes -m
```

This patch overrides this behavior, and if it is used clang or gcc/g++, flag 
becomes `-march`



>From e9a5462ec17beca948e8a18fc7fa5edb1328c9b1 Mon Sep 17 00:00:00 2001
From: Ivan Tetyushkin <ivan.tetyush...@syntacore.com>
Date: Thu, 11 Apr 2024 12:23:38 +0300
Subject: [PATCH] [lldb][test] Make archflags for gcc and clang -march

---
 .../Python/lldbsuite/test/make/Makefile.rules      | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules 
b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
index bfd249ccd43f2e..5206466aa12750 100644
--- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
+++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
@@ -212,6 +212,20 @@ else
        endif
 endif
 
+ifneq (,$(findstring gcc,$(CC)))
+       ARCHFLAG :=-march=
+endif
+ifneq (,$(findstring g++,$(CC)))
+       ARCHFLAG :=-march=
+endif
+ifneq (,$(findstring clang,$(CC)))
+       ARCHFLAG :=-march=
+endif
+ifneq (,$(findstring clang++,$(CC)))
+       ARCHFLAG :=-march=
+endif
+
+
 LIMIT_DEBUG_INFO_FLAGS =
 NO_LIMIT_DEBUG_INFO_FLAGS =
 MODULE_DEBUG_INFO_FLAGS =

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to