diff --git a/scripts/gha/build_desktop.py b/scripts/gha/build_desktop.py index e381b77cbf..1978ff0ba2 100644 --- a/scripts/gha/build_desktop.py +++ b/scripts/gha/build_desktop.py @@ -39,6 +39,7 @@ import utils import shutil import subprocess +import sys def append_line_to_file(path, line): """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 # on different windows machines. cmd.append('-A') cmd.append('Win32') if arch == 'x86' else cmd.append('x64') + # Also, for Windows, specify the path to Python. + cmd.append('-DFIREBASE_PYTHON_HOST_EXECUTABLE:FILEPATH=%s' % sys.executable) # Use our special cmake flag to specify /MD vs /MT if msvc_runtime_library == "static":