Skip to content

Commit 2fb7dfe

Browse files
Disable IncludeValidation for ObjC in bazel (bazelbuild#14440)
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 bazelbuild#14346. PiperOrigin-RevId: 415251009 Co-authored-by: waltl <[email protected]>
1 parent 5aef53a commit 2fb7dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppSemantics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public void validateAttributes(RuleContext ruleContext) {
128128

129129
@Override
130130
public boolean needsIncludeValidation() {
131-
return true;
131+
return language != Language.OBJC;
132132
}
133133

134134
@Override

0 commit comments

Comments
 (0)