Skip to content

Commit

Permalink
macos: make --config=remote work again (#5680)
Browse files Browse the repository at this point in the history
  • Loading branch information
sluongng authored Jan 10, 2024
1 parent ee5d26f commit f10453d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,9 @@ common:windows --cxxopt=/std:c++17
# This is currently not avoidable with the current way the local cc toolchain is configured
# as well as how linkopts are propagated through the dependency graph between libraries.
# This flag is a workaround to silence the linker warnings.
common:macos --linkopt="-Wl,-no_warn_duplicate_libraries"
common:macos --host_linkopt="-Wl,-no_warn_duplicate_libraries"
# common:macos --linkopt="-Wl,-no_warn_duplicate_libraries"
# common:macos --host_linkopt="-Wl,-no_warn_duplicate_libraries"
common:macos --platform_mappings=platform_mapping

# Ensure that we don't use the apple_support cc_toolchain
common:macos --repo_env=BAZEL_NO_APPLE_CPP_TOOLCHAIN=1
Expand Down
4 changes: 4 additions & 0 deletions platform_mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
platforms:
@local_config_platform//:host
--linkopt="-Wl,-no_warn_duplicate_libraries"
--host_linkopt="-Wl,-no_warn_duplicate_libraries"

0 comments on commit f10453d

Please sign in to comment.