You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(toolchain): add copts and objc_copts attributes to toolchains (#1564)
When using rules_swift with a custom (rules based) cc_toolchain, it is
sometimes useful to propagate certain flags to every swift invocation.
And while a cc_library() could potentially be used in implicit_deps to
pass the usual options (-isystem, -iquote, -D, etc...), the CcInfo
provider does not allow propagating every option.
Some options in particular (such as -Xclang -internal-externc-system)
cannot currently be propagated that way, and they can nonetheless be
necessary in certain environment.
So we're making the current toolchain rules a tad more flexible in this
commit, by allowing the user to specify "objc_copts" (for xcode only)
and "copts" at toolchain parameters. The content of these attributes is
then added to the corresponding compilation actions.
0 commit comments