From 5ad39c9cf4ccf593aa7b49f62de0f8142853401f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Mon, 11 Jul 2016 19:57:47 +0300 Subject: [PATCH] Write CMake params as a "recmake" script so that developers can call that to easily recmake with the same parameters as the previous configuration. --- emsdk | 1 + 1 file changed, 1 insertion(+) diff --git a/emsdk b/emsdk index 62fa5b0..d8f1d62 100755 --- a/emsdk +++ b/emsdk @@ -627,6 +627,7 @@ def cmake_configure(generator, build_root, src_root, build_type, extra_cmake_arg else: generator = [] cmdline = ['cmake'] + generator + ['-DCMAKE_BUILD_TYPE='+build_type, '-DPYTHON_EXECUTABLE='+sys.executable] + extra_cmake_args + [src_root] print('Running CMake: ' + str(cmdline)) + open(os.path.join(build_root, 'recmake.' + ('bat' if WINDOWS else 'sh')), 'w').write(' '.join(cmdline)) # Create a file 'recmake.bat/sh' in the build root that user can call to manually recmake the build tree with the previous build params ret = subprocess.check_call(cmdline, cwd=build_root) if ret != 0: print('CMake invocation failed with exit code ' + ret + '!', file=sys.stderr)