From 7eeba4d485b7990aeb17c059b791b5cbc2ebfc7b Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Thu, 24 Dec 2020 05:23:42 +0000 Subject: [PATCH] js(build): reuse Python executable used to run main script - don't switch between Python versions in the middle of the build --- platforms/js/build_js.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platforms/js/build_js.py b/platforms/js/build_js.py index afe37c6949..37ff956de2 100644 --- a/platforms/js/build_js.py +++ b/platforms/js/build_js.py @@ -77,7 +77,9 @@ class Builder: rm_one(d) def get_cmake_cmd(self): - cmd = ["cmake", + cmd = [ + "cmake", + "-DPYTHON_DEFAULT_EXECUTABLE=%s" % sys.executable, "-DENABLE_PIC=FALSE", # To workaround emscripten upstream backend issue https://github.com/emscripten-core/emscripten/issues/8761 "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_TOOLCHAIN_FILE='%s'" % self.get_toolchain_file(),