Description of the feature request:
Like the title says, cc_library has a handy local_defines attribute that lets the BUILD file pass preprocessor definitions to a library but not its dependents. However, objc_library lacks the corresponding attribute.
What underlying problem are you trying to solve with this feature?
Passing locally scoped preprocessor definitions (e.g., #define NUM_THREADS 3 and have it not leak out to everyone that depends on it since it the name may not be unique.
Which operating system are you running Bazel on?
MacOS Ventura
What is the output of bazel info release?
release 5.3.1
If bazel info release returns development version or (@non-git), tell us how you built Bazel.
N/A
What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
Description of the feature request:
Like the title says, cc_library has a handy local_defines attribute that lets the
BUILDfile pass preprocessor definitions to a library but not its dependents. However, objc_library lacks the corresponding attribute.What underlying problem are you trying to solve with this feature?
Passing locally scoped preprocessor definitions (e.g.,
#define NUM_THREADS 3and have it not leak out to everyone that depends on it since it the name may not be unique.Which operating system are you running Bazel on?
MacOS Ventura
What is the output of
bazel info release?release 5.3.1
If
bazel info releasereturnsdevelopment versionor(@non-git), tell us how you built Bazel.N/A
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD?Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response