xref: /llvm-project/lldb/packages/Python/lldbsuite/test/builders/__init__.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1"""
2This module builds test binaries for the test suite using Make.
3
4Platform specific builders can override methods in the Builder base class. The
5factory method below hands out builders based on the given platform.
6"""
7
8
9def get_builder(platform):
10    """Returns a Builder instance for the given platform."""
11    if platform == "darwin":
12        from .darwin import BuilderDarwin
13
14        return BuilderDarwin()
15
16    from .builder import Builder
17
18    return Builder()
19