Skip to content

Commit 7eeba4d

Browse files
committed
js(build): reuse Python executable used to run main script
- don't switch between Python versions in the middle of the build
1 parent 68fb8dd commit 7eeba4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

platforms/js/build_js.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ def clean_build_dir(self):
7777
rm_one(d)
7878

7979
def get_cmake_cmd(self):
80-
cmd = ["cmake",
80+
cmd = [
81+
"cmake",
82+
"-DPYTHON_DEFAULT_EXECUTABLE=%s" % sys.executable,
8183
"-DENABLE_PIC=FALSE", # To workaround emscripten upstream backend issue https://github.com/emscripten-core/emscripten/issues/8761
8284
"-DCMAKE_BUILD_TYPE=Release",
8385
"-DCMAKE_TOOLCHAIN_FILE='%s'" % self.get_toolchain_file(),

0 commit comments

Comments
 (0)