Abort on build_fastcomp_tool() failures early. Fixes https://github.com/kripken/emscripten/issues/3267 .

This commit is contained in:
Jukka Jylänki
2015-03-18 14:22:48 +02:00
parent 51d20e9a3b
commit dda257ce65

6
emsdk
View File

@@ -507,9 +507,11 @@ def cmake_configure(generator, build_root, src_root, build_type, extra_cmake_arg
def build_fastcomp_tool(tool):
fastcomp_root = tool.installation_path()
fastcomp_src_root = os.path.join(fastcomp_root, 'src')
git_clone_checkout_and_pull(tool.url, fastcomp_src_root, tool.git_branch)
success = git_clone_checkout_and_pull(tool.url, fastcomp_src_root, tool.git_branch)
if not success: return False
clang_root = os.path.join(fastcomp_src_root, 'tools/clang')
git_clone_checkout_and_pull(tool.clang_url, clang_root, tool.git_branch)
success = git_clone_checkout_and_pull(tool.clang_url, clang_root, tool.git_branch)
if not success: return False
cmake_generator = CMAKE_GENERATOR
if 'Visual Studio' in CMAKE_GENERATOR and tool.bitness == 64:
cmake_generator += ' Win64'