[Lldb-commits] [lldb] 2955a27 - [lldb] Pass the arch as part of the triple in the ARCH_CFLAGS

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 9 14:41:38 PDT 2020


Author: Jonas Devlieghere
Date: 2020-09-09T14:41:25-07:00
New Revision: 2955a27abc25cd1b9d737c211c2cfe11e2a5de3e

URL: https://github.com/llvm/llvm-project/commit/2955a27abc25cd1b9d737c211c2cfe11e2a5de3e
DIFF: https://github.com/llvm/llvm-project/commit/2955a27abc25cd1b9d737c211c2cfe11e2a5de3e.diff

LOG: [lldb] Pass the arch as part of the triple in the ARCH_CFLAGS

Added: 
    

Modified: 
    lldb/packages/Python/lldbsuite/test/builders/darwin.py

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/builders/darwin.py b/lldb/packages/Python/lldbsuite/test/builders/darwin.py
index 4548217c3fab..236e4fac1368 100644
--- a/lldb/packages/Python/lldbsuite/test/builders/darwin.py
+++ b/lldb/packages/Python/lldbsuite/test/builders/darwin.py
@@ -78,7 +78,7 @@ def getExtraMakeArgs(self):
             {'{}="{}"'.format(key, value)
              for key, value in args.items()})
 
-    def getArchCFlags(self, architecture):
+    def getArchCFlags(self, arch):
         """Returns the ARCH_CFLAGS for the make system."""
         # Get the triple components.
         vendor, os, version, env = get_triple()
@@ -86,7 +86,7 @@ def getArchCFlags(self, architecture):
             return ""
 
         # Construct the triple from its components.
-        triple = "{}-{}-{}-{}".format(vendor, os, version, env)
+        triple = '-'.join([arch, vendor, os, version, env])
 
         # Construct min version argument
         version_min = ""


        


More information about the lldb-commits mailing list