lldb/packages/Python/lldbsuite/test/builders/__init__.py
raw| 1 | """ |
| 2 | This module builds test binaries for the test suite using Make. |
| 3 | |
| 4 | Platform specific builders can override methods in the Builder base class. The |
| 5 | factory method below hands out builders based on the given platform. |
| 6 | """ |
| 7 | |
| 8 | |
| 9 | def 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() |