Skip to content
Snippets Groups Projects
Commit 0da93518 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

allow unset env var

parent 4848c8d2
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ with open(".clang-format") as f:
fmt = f.read()
CURRENT_LLVM = os.getenv('LLVM_VERSION', 14)
CLANG_FORMAT_BIN = os.getenv("CLANG_FORMAT_BIN")
CLANG_FORMAT_BIN = os.getenv("CLANG_FORMAT_BIN", "")
if shutil.which(CLANG_FORMAT_BIN) is None:
CLANG_FORMAT_BIN = f"clang-format-{CURRENT_LLVM}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment