MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / find_llvm_git_root

Function find_llvm_git_root

test/runner.py:637–645  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

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:

Callers 1

log_test_environmentFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected