Jonas Devlieghere a7ac43125e
Re-land "[lldb] Pick the builder for the target platform (#151262)"
Pick the builder for the target platform, not the host platform. This is
necessary when running the test suite remotely on a different platform.
Unlike for Darwin, both Windows and Linux us the default builder, which
is why this went unnoticed on the remote-linux bots.
2025-07-30 12:48:56 -07:00

27 lines
591 B
Python

"""
This module builds test binaries for the test suite using Make.
Platform specific builders can override methods in the Builder base class. The
factory method below hands out builders based on the given platform.
"""
def get_builder(platform):
"""Returns a Builder instance for the given platform."""
if platform in [
"bridgeos",
"darwin",
"ios",
"macosx",
"tvos",
"watchos",
"xros",
]:
from .darwin import BuilderDarwin
return BuilderDarwin()
from .builder import Builder
return Builder()