Disable IncludeValidation for ObjC in bazel
IncludeValidation was disabled for ObjC for bazel versions up to 4.2.
We are getting reports that turning it on in 5.0 causes breakages due
to Apple (?) clang emitting absolute paths in .d files.
Fixes
@@ -135,7 +135,7 @@ public class BazelCppSemantics implements AspectLegalCppSemantics {
@Override
public boolean needsIncludeValidation() {
- return true;
+ return language != Language.OBJC;
}
@Override
