mirror of
https://github.com/KhronosGroup/Vulkan-Utility-Libraries.git
synced 2025-05-23 21:19:23 +00:00
scripts: Make gn.py use check_call
Just like VVL, it was using subprocess.call(), which ignores errors.
This commit is contained in:
parent
4befdac21a
commit
d90f5c7eb1
1 changed files with 4 additions and 4 deletions
8
scripts/gn/gn.py
Normal file → Executable file
8
scripts/gn/gn.py
Normal file → Executable file
|
@ -23,19 +23,19 @@ def BuildGn():
|
||||||
|
|
||||||
print("Updating Repo Dependencies and GN Toolchain\n", flush=True)
|
print("Updating Repo Dependencies and GN Toolchain\n", flush=True)
|
||||||
update_cmd = './scripts/gn/update_deps.sh'
|
update_cmd = './scripts/gn/update_deps.sh'
|
||||||
subprocess.call(update_cmd)
|
subprocess.check_call(update_cmd)
|
||||||
|
|
||||||
print("Checking Header Dependencies\n", flush=True)
|
print("Checking Header Dependencies\n", flush=True)
|
||||||
gn_check_cmd = 'gn gen --check out/Debug'.split(" ")
|
gn_check_cmd = 'gn gen --check out/Debug'.split(" ")
|
||||||
subprocess.call(gn_check_cmd)
|
subprocess.check_call(gn_check_cmd)
|
||||||
|
|
||||||
print("Generating Ninja Files\n", flush=True)
|
print("Generating Ninja Files\n", flush=True)
|
||||||
gn_gen_cmd = 'gn gen out/Debug'.split(" ")
|
gn_gen_cmd = 'gn gen out/Debug'.split(" ")
|
||||||
subprocess.call(gn_gen_cmd)
|
subprocess.check_call(gn_gen_cmd)
|
||||||
|
|
||||||
print("Running Ninja Build\n", flush=True)
|
print("Running Ninja Build\n", flush=True)
|
||||||
ninja_build_cmd = 'ninja -C out/Debug'.split(" ")
|
ninja_build_cmd = 'ninja -C out/Debug'.split(" ")
|
||||||
subprocess.call(ninja_build_cmd)
|
subprocess.check_call(ninja_build_cmd)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Module Entrypoint
|
# Module Entrypoint
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue