Link-Time Substitution: Native Support #200
Labels
P3
Accepted issue. Team is likely to fix this issue in the future, but no short-term promises are made.
type: feature request
Request for new, generally useful functionality that is missing
Description of the problem / feature request:
I'm using link-time substitution in order to provide different implementations of the same function in different binaries (e.g. test targets, or targets with different features enabled) within the same overall build.
When working a large codebase, it's easy to either:
I would like to be able to tag the targets which declare the interface with e.g. a
declares_symbols = [ ... ]
argument, and the targets which define it with e.g.defines_symbols = [ ... ]
such that I get a bazel error if I try to build a target which depends on a symbol declaration which does not have exactly one definition in its dependency tree.For example:
Feature requests: what underlying problem are you trying to solve with this feature?
I want to swap out the implementation of certain functions in different link targets (e.g. binary, test, static library) without rebuilding all dependencies.
The text was updated successfully, but these errors were encountered: