(dir)
| 635 | |
| 636 | # Find LLVM git directory in emsdk aware fashion |
| 637 | def find_llvm_git_root(dir): |
| 638 | while True: |
| 639 | if os.path.isdir(os.path.join(dir, ".git")): |
| 640 | return dir |
| 641 | if os.path.isdir(os.path.join(dir, "src", ".git")): |
| 642 | return os.path.join(dir, "src") |
| 643 | if os.path.dirname(dir) == dir: |
| 644 | return None |
| 645 | dir = os.path.dirname(dir) |
| 646 | |
| 647 | llvm_git_root = find_llvm_git_root(config.LLVM_ROOT) |
| 648 | if llvm_git_root: |
no test coverage detected