Skip to content

Commit

Permalink
[7.1.0] Switch macOS minimum version flag to gcc compatible version (#…
Browse files Browse the repository at this point in the history
…21219)

Fixes #20698

I'm not sure how that user got into that state yet, but it doesn't hurt
for this to be gcc compatible just in case the user is intentionally
using gcc on macOS

Closes #20798.

Commit
05b1f06

PiperOrigin-RevId: 604515755
Change-Id: Ib9087fe6afbbb3514513a7d5d120fcf448e54f65

Co-authored-by: Keith Smiley <keithbsmiley@gmail.com>
  • Loading branch information
bazel-io and keith authored Feb 7, 2024
1 parent ae67365 commit a64ed17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cpp/unix_cc_toolchain_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ def _impl(ctx):
flag_sets = [
flag_set(
actions = all_compile_actions + all_link_actions,
flag_groups = [flag_group(flags = ["-mmacos-version-min={}".format(_target_os_version(ctx))])],
flag_groups = [flag_group(flags = ["-mmacosx-version-min={}".format(_target_os_version(ctx))])],
),
],
)
Expand Down

0 comments on commit a64ed17

Please sign in to comment.