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