Skip to content

Commit 52d219b

Browse files
authored
Fix path to python on windows desktop build. (#910)
* Fix path to python on windows desktop build.
1 parent 8a26c99 commit 52d219b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/gha/build_desktop.py

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import utils
4040
import shutil
4141
import subprocess
42+
import sys
4243

4344
def append_line_to_file(path, line):
4445
"""Append the given line to the end of the file if it's not already in the file.
@@ -234,6 +235,8 @@ def cmake_configure(build_dir, arch, msvc_runtime_library='static', linux_abi='l
234235
# on different windows machines.
235236
cmd.append('-A')
236237
cmd.append('Win32') if arch == 'x86' else cmd.append('x64')
238+
# Also, for Windows, specify the path to Python.
239+
cmd.append('-DFIREBASE_PYTHON_HOST_EXECUTABLE:FILEPATH=%s' % sys.executable)
237240

238241
# Use our special cmake flag to specify /MD vs /MT
239242
if msvc_runtime_library == "static":

0 commit comments

Comments
 (0)