-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow multiple uses of extra_rustc_flags #1407
Conversation
out of luck :(
|
Bumped the min bazel version but I have no idea this met the |
Could you move the min supported bazel version bump to a separate PR please? It's a big-ish deal so it's good to not have it hidden in this PR. |
Otherwise looks good to me, but I'll kindly ask @krasimirgg to double check. |
I'm a bit concerned with the switch from a string list to a string and the "always-on" splitting-by-comma that this change introduces. IMO we need to have a good way to escape commas. An example is something like this where we want to pass arguments with commas in them though rustc all the way down to the linker, e.g., pass Is there a supported mechanism to allow multiple string_list flags in Bazel? |
mm, I didn't take that case into consideration because:
But it is helpful to be able to pass arguments including commas. |
Perhaps this should be an upstream issue for Bazel to allow multiple string_list flags? |
related??
I have an another idea. How about introducing new build setting e.g.,
Looks verbose but straightforward to extend flags. What do you think? |
I like this, to clarify a bit the semantics I read from your proposal: we keep the extra_rustc_flags as-is (string_list), and extra_rustc_flag is string + allow_multiple=true, and each extra_rustc_flag is singular (not split by comma), and the extra_rustc_flag-s are appended after the extra_rustc_flags. |
Created #1413, so I will close this PR. Thanks for your review. |
I would like to support the following use cases.
In
.bazelrc
.