Skip to content

Commit fd5206c

Browse files
committed
Revert "[lldb][test] Only add -m(64|32) for GCC on non Arm/AArch64 platforms"
This reverts commit 7c3603e. Turns out when you ask for "clang" it also uses the GCC Builder class, so I need to update some tests.
1 parent 3a1eb1f commit fd5206c

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

lldb/test/Shell/helper/build.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -747,10 +747,7 @@ def _get_compilation_command(self, source, obj):
747747
args = []
748748

749749
args.append(self.compiler)
750-
751-
uname = platform.uname().machine.lower()
752-
if not "arm" in uname and not "aarch64" in uname:
753-
args.append("-m" + self.arch)
750+
args.append("-m" + self.arch)
754751

755752
args.append("-g")
756753
if self.opt == "none":
@@ -787,11 +784,7 @@ def _get_compilation_command(self, source, obj):
787784
def _get_link_command(self):
788785
args = []
789786
args.append(self.compiler)
790-
791-
uname = platform.uname().machine.lower()
792-
if not "arm" in uname and not "aarch64" in uname:
793-
args.append("-m" + self.arch)
794-
787+
args.append("-m" + self.arch)
795788
if self.nodefaultlib:
796789
args.append("-nostdlib")
797790
args.append("-static")

0 commit comments

Comments
 (0)