From 005361c895da334beb873901e93aff06d180256e Mon Sep 17 00:00:00 2001 From: waltl Date: Thu, 9 Dec 2021 06:32:45 -0800 Subject: [PATCH] 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 #14346. PiperOrigin-RevId: 415251009 --- .../devtools/build/lib/bazel/rules/cpp/BazelCppSemantics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppSemantics.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppSemantics.java index 64d900d7b1e213..79bba3e04b17e5 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppSemantics.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppSemantics.java @@ -135,7 +135,7 @@ public void validateAttributes(RuleContext ruleContext) { @Override public boolean needsIncludeValidation() { - return true; + return language != Language.OBJC; } @Override