Index: tools/build_shaderc.py |
diff --git a/tools/build_shaderc.py b/tools/build_shaderc.py |
index dae0054cfdc9dd8b5f6a669e6394f7ed3baed1df..0cff599bb1ccb705481077973c450ef3df32116b 100644 |
--- a/tools/build_shaderc.py |
+++ b/tools/build_shaderc.py |
@@ -63,9 +63,10 @@ def main(): |
sys.exit('Error creating output dir ' + args.output_dir) |
try: |
+ build_type_arg='-DCMAKE_BUILD_TYPE=' + args.build_type |
subprocess.check_call(['cmake', '-G', generator, |
'-DSPIRV_SKIP_EXECUTABLES=ON', '-DSHADERC_ENABLE_SHARED_CRT=ON', |
- args.src_dir], cwd=args.output_dir) |
+ args.src_dir, build_type_arg], cwd=args.output_dir) |
except subprocess.CalledProcessError as error: |
sys.exit('Error (ret code: {code}) calling "{cmd}" in {dir}'.format( |
code = error.returncode, cmd = error.cmd, dir = args.src_dir)) |