Skip to content

Commit

Permalink
Tell Bazel the specific target version of macOS too. Sigh.
Browse files Browse the repository at this point in the history
Change-Id: I4f50d5299a0462d279042a2175995fff00ff97e4
Reviewed-on: https://code-review.googlesource.com/c/re2/+/62912
Reviewed-by: Paul Wankadia <[email protected]>
Reviewed-by: Jeff Bailey <[email protected]>
  • Loading branch information
junyer committed Mar 28, 2024
1 parent 553f6df commit 917047f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ def build_extension(self, ext):
cmd.append(f'--extra_toolchains=@local_config_cc//:cc-toolchain-{cpu}')
except KeyError:
pass
try:
ver = os.environ['MACOSX_DEPLOYMENT_TARGET']
cmd.append(f'--macos_minimum_os={ver}')
except KeyError:
pass
# Register the local Python toolchains with highest priority.
self.generate_python_toolchains()
cmd.append('--extra_toolchains=//python/toolchains:all')
Expand Down

0 comments on commit 917047f

Please sign in to comment.