Clang build.py, set shell=True in GetCommitDescription
Otherwise Python doesn't find git when it's available as git.bat: >where git c:\src\depot_tools\git.bat >python tools\clang\scripts\build.py --llvm-force-head-revision [...] Traceback (most recent call last): File "tools\clang\scripts\build.py", line 1098, in <module> sys.exit(main()) File "tools\clang\scripts\build.py", line 498, in main CLANG_REVISION = GetCommitDescription(checkout_revision) File "tools\clang\scripts\build.py", line 180, in GetCommitDescription ['git', 'describe', '--long', '--abbrev=8', commit]).rstrip() File "c:\src\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\subprocess.py", line 216, in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) File "c:\src\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\subprocess.py", line 394, in __init__ errread, errwrite) File "c:\src\depot_tools\bootstrap-3_8_0_chromium_8_bin\python\bin\lib\subprocess.py", line 644, in _execute_child startupinfo) WindowsError: [Error 2] The system cannot find the file specified Bug: 1015315 Change-Id: I403a0cb4006f274e4a438e6d69fbbb5540b97570 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2438056 Commit-Queue: Reid Kleckner <rnk@chromium.org> Auto-Submit: Hans Wennborg <hans@chromium.org> Reviewed-by:Reid Kleckner <rnk@chromium.org> Cr-Commit-Position: refs/heads/master@{#811752}
Showing
Please register or sign in to comment