Skip to content

Commit 005361c

Browse files
googlewaltcopybara-github
authored andcommitted
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 bazelbuild#14346. PiperOrigin-RevId: 415251009
1 parent 278a637 commit 005361c

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public void validateAttributes(RuleContext ruleContext) {
135135

136136
@Override
137137
public boolean needsIncludeValidation() {
138-
return true;
138+
return language != Language.OBJC;
139139
}
140140

141141
@Override

0 commit comments

Comments
 (0)