diff options
author | Paul Wankadia <junyer@google.com> | 2024-01-16 19:06:23 +0000 |
---|---|---|
committer | Paul Wankadia <junyer@google.com> | 2024-01-16 19:07:59 +0000 |
commit | 95bb96b2985e0b9fa65db306743990a6ca9f1c40 (patch) | |
tree | f70ae3a72d8c52a1ea071fd961d79da3deeef0fe | |
parent | f20d014aee1ec00724cd57d2b3e10ac72d1d6b09 (diff) | |
download | regex-re2-95bb96b2985e0b9fa65db306743990a6ca9f1c40.tar.gz |
Register the local Python toolchain with highest priority.
Change-Id: I74f63bab5b0eab4296b1ed7dee9b98e76fdd3d64
Reviewed-on: https://code-review.googlesource.com/c/re2/+/62374
Reviewed-by: Paul Wankadia <junyer@google.com>
Reviewed-by: Alex Chernyakhovsky <achernya@google.com>
-rw-r--r-- | python/setup.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/setup.py b/python/setup.py index 7d83b34..5f2fba5 100644 --- a/python/setup.py +++ b/python/setup.py @@ -57,6 +57,8 @@ class BuildExt(setuptools.command.build_ext.build_ext): cmd.append(f'--platforms=//python:{os.environ["BAZEL_CPU"].lower()}') except KeyError: pass + # Register the local Python toolchain with highest priority. + cmd.append('--extra_toolchains=@local_config_python//:py_toolchain') cmd += ['--compilation_mode=opt', '--', ':all'] self.spawn(cmd) |