From df368691cda75ddd2b3e7f55976381ec7de30286 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Tue, 6 Dec 2022 15:06:30 +0000 Subject: [PATCH] xenia-build: find clang-format in VS installation --- xenia-build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xenia-build b/xenia-build index c521a9504..576acbc41 100755 --- a/xenia-build +++ b/xenia-build @@ -47,6 +47,7 @@ def import_subprocess_environment(args): 'systemroot', 'temp', 'tmp', + 'vcinstalldir', 'windowssdkdir', ) for line in variables.splitlines(): @@ -436,6 +437,8 @@ def get_clang_format_binary(): 'clang-format-13', 'clang-format', ] + if 'VCINSTALLDIR' in os.environ: + attempts.append(os.path.join(os.environ['VCINSTALLDIR'], 'Tools', 'Llvm', 'bin', 'clang-format.exe')) for binary in attempts: if has_bin(binary): return binary