Skip to content

Commit

Permalink
Switch macOS minimum version flag to gcc compatible version
Browse files Browse the repository at this point in the history
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.

PiperOrigin-RevId: 604515755
Change-Id: Ib9087fe6afbbb3514513a7d5d120fcf448e54f65
  • Loading branch information
keith authored and copybara-github committed Feb 6, 2024
1 parent 8ff9957 commit 05b1f06
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 05b1f06

Please sign in to comment.