Replies: 1 comment 3 replies
-
Ended using platform_mapping to solve my problem https://github.com/buildbuddy-io/buildbuddy/pull/5680/files Would love to hear suggestions for alternatives. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My use case is that we are currently doing this
to silent the Xcode 15 warning about duplicated -lm flags.
However, on MacOS, we could optionally enable
--config=remote
to build remotely on Linux RBE.And our linker on Linux does not like to have those flags passed to it.
(ignore the irrelevant error message, it's mostly just
ld.gold
linker not recognizing the flag above)So ideally, I am looking for a way to set the above flags by default but wipe them when
--config=remote
is enabled.I am looking into platform_mapping right now as a potential solution, but the API is deemed to be unstable and the feature will go away in the future.
A simple solution for this would be to be able to set a default
--linkopt
in.bazelrc
for macOS builds, but to have the ability to unset it when needed (i.e. when RBE is manually enabled with--config=remote
).Beta Was this translation helpful? Give feedback.
All reactions