Fix Emscripten optimizer build when both VS2013 and VS2015 are present and sufficiently new CMake is being used. Fix Emscripten optimizer build to be performed as 64-bit when current system is 64-bit. Fixes https://github.com/kripken/emscripten/issues/3814.
This commit is contained in:
9
emsdk
9
emsdk
@@ -645,13 +645,14 @@ def build_optimizer_tool(tool):
|
||||
build_type = decide_cmake_build_type(tool)
|
||||
|
||||
# Configure
|
||||
success = cmake_configure(None, build_root, src_root, build_type)
|
||||
cmake_generator = CMAKE_GENERATOR
|
||||
if 'Visual Studio' in CMAKE_GENERATOR and tool.bitness == 64:
|
||||
cmake_generator += ' Win64'
|
||||
success = cmake_configure(cmake_generator, build_root, src_root, build_type)
|
||||
if not success: return False
|
||||
|
||||
# Make
|
||||
# TODO: Enable the following:
|
||||
# success = make_build(build_root, build_type, 'x64' if tool.bitness == 64 else 'Win32')
|
||||
success = make_build(build_root, build_type, 'Win32')
|
||||
success = make_build(build_root, build_type, 'x64' if tool.bitness == 64 else 'Win32')
|
||||
return success
|
||||
|
||||
def download_and_unzip(zipfile, dest_dir, download_even_if_exists=False, filename_prefix = ''):
|
||||
|
||||
Reference in New Issue
Block a user