From c770b75c6997bd121e670d3bcd25bc728e0c6635 Mon Sep 17 00:00:00 2001 From: bsalomon Date: Fri, 1 Apr 2016 08:40:55 -0700 Subject: [PATCH] Respect build type arg in build_shaderc.py GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1854733004 Review URL: https://codereview.chromium.org/1854733004 --- tools/build_shaderc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/build_shaderc.py b/tools/build_shaderc.py index dae0054cfd..0cff599bb1 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))