Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

.bazelrc file and startup --output_base for multi-platform (windows/linux)

35 views
Skip to first unread message

Eric Stoces

unread,
Dec 20, 2024, 5:02:48 PM12/20/24
to bazel-discuss
I have a use case where I need to set the output_base for linux platforms, but not set it for windows.  It would be nice if startup used the platform_specific_config option `startup:linux --output_base=/blah`, or if --output_base could be unset in my personal .bazelrc file on windows.

I'm trying to keep the command line as simple as possible, but it seems I have limited options.  Am I missing an easy option?

Austin Schuh

unread,
Dec 20, 2024, 5:06:35 PM12/20/24
to Eric Stoces, bazel-discuss
Easy is always a strong word, but we've been starting to add some platform autodetection to tools/bazel in addition to downloading and running a sandboxed version of bazel.  tools/bazel gets run automatically by /usr/bin/bazel (or bazelisk) if it exists instead of the installed bazel.

Austin

On Fri, Dec 20, 2024 at 2:02 PM Eric Stoces <ewst...@gmail.com> wrote:
I have a use case where I need to set the output_base for linux platforms, but not set it for windows.  It would be nice if startup used the platform_specific_config option `startup:linux --output_base=/blah`, or if --output_base could be unset in my personal .bazelrc file on windows.

I'm trying to keep the command line as simple as possible, but it seems I have limited options.  Am I missing an easy option?

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bazel-discuss/ca433e25-ce9a-456e-8cb1-81a7840602b8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages