Skip to content

Commit bbfad95

Browse files
committed
Register the local 32-bit C++ toolchain with highest priority.
Change-Id: I79d52e24ed00e875d1cfbb1f316139ad7639aff6 Reviewed-on: https://code-review.googlesource.com/c/re2/+/62470 Reviewed-by: Paul Wankadia <junyer@google.com> Reviewed-by: Alex Chernyakhovsky <achernya@google.com>
1 parent e6c83c9 commit bbfad95

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

python/setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ def build_extension(self, ext):
5656
cpu = os.environ['BAZEL_CPU']
5757
cmd.append(f'--cpu={cpu}')
5858
cmd.append(f'--platforms=//python:{cpu}')
59+
if cpu == 'x64_x86_windows':
60+
# Register the local 32-bit C++ toolchain with highest priority.
61+
# (This is likely to break in some release of Bazel after 7.0.0,
62+
# but this special case can hopefully be entirely removed then.)
63+
cmd.append(f'--extra_toolchains=@local_config_cc//:cc-toolchain-{cpu}')
5964
except KeyError:
6065
pass
6166
# Register the local Python toolchain with highest priority.

0 commit comments

Comments
 (0)