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
This commit is contained in:
bsalomon 2016-04-01 08:40:55 -07:00 committed by Commit bot
parent 4eb4964e18
commit c770b75c69

View File

@ -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))