Index: lldb/packages/Python/lldbsuite/test/builders/builder.py =================================================================== --- lldb/packages/Python/lldbsuite/test/builders/builder.py +++ lldb/packages/Python/lldbsuite/test/builders/builder.py @@ -93,11 +93,7 @@ Helper function to return the key-value string to specify the architecture used for the make system. """ - arch = architecture if architecture else None - if not arch and configuration.arch: - arch = configuration.arch - - return ("ARCH=" + arch) if arch else "" + return ("ARCH=" + architecture) if architecture else "" def getCCSpec(self, compiler): """ Index: lldb/packages/Python/lldbsuite/test/lldbtest.py =================================================================== --- lldb/packages/Python/lldbsuite/test/lldbtest.py +++ lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -2606,6 +2606,9 @@ """Platform specific way to build the default binaries.""" module = builder_module() + if not architecture and configuration.arch: + architecture = configuration.arch + dictionary = lldbplatformutil.finalize_build_dictionary(dictionary) if self.getDebugInfo() is None: return self.buildDefault(architecture, compiler, dictionary)