[lldb] Set the default architecture also in buildDefault
[lldb.git] / lldb / packages / Python / lldbsuite / test / lldbtest.py
index 73007ca..08f44c7 100644 (file)
@@ -1591,6 +1591,10 @@ class Base(unittest2.TestCase):
         """Platform specific way to build the default binaries."""
         testdir = self.mydir
         testname = self.getBuildDirBasename()
+
+        if not architecture and configuration.arch:
+            architecture = configuration.arch
+
         if self.getDebugInfo():
             raise Exception("buildDefault tests must set NO_DEBUG_INFO_TESTCASE")
         module = builder_module()