Alas, --extra_execution_platforms didn't help.

Change-Id: I84064688f4a46aed413ffea82f017290fc3f7a54
Reviewed-on: https://code-review.googlesource.com/c/re2/+/62450
Reviewed-by: Perry Lorier <perryl@google.com>
Reviewed-by: Paul Wankadia <junyer@google.com>
This commit is contained in:
Paul Wankadia
2024-01-18 10:35:53 +00:00
parent 70abe6b3b1
commit e6c83c9028

View File

@@ -56,9 +56,6 @@ class BuildExt(setuptools.command.build_ext.build_ext):
cpu = os.environ['BAZEL_CPU']
cmd.append(f'--cpu={cpu}')
cmd.append(f'--platforms=//python:{cpu}')
if cpu == 'x64_x86_windows':
# Attempt to convince Bazel 7 that X64 can build for X86.
cmd.append('--extra_execution_platforms=//python:x64_windows')
except KeyError:
pass
# Register the local Python toolchain with highest priority.