brintos

brintos / llvm-project-archived public Read only

0
0
Text · 591 B · 7331526 Raw
27 lines · python
1"""2This module builds test binaries for the test suite using Make.3 4Platform specific builders can override methods in the Builder base class. The5factory 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 in [12        "bridgeos",13        "darwin",14        "ios",15        "macosx",16        "tvos",17        "watchos",18        "xros",19    ]:20        from .darwin import BuilderDarwin21 22        return BuilderDarwin()23 24    from .builder import Builder25 26    return Builder()27