From 2fb7dfe7b35b5997cc5fbcd1d98612b99419f097 Mon Sep 17 00:00:00 2001 From: amberdixon Date: Thu, 16 Dec 2021 03:56:39 -0800 Subject: [PATCH] Disable IncludeValidation for ObjC in bazel (#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 #14346. PiperOrigin-RevId: 415251009 Co-authored-by: waltl --- .../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 922c40011e4938..2e48f99bce782a 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 @@ -128,7 +128,7 @@ public void validateAttributes(RuleContext ruleContext) { @Override public boolean needsIncludeValidation() { - return true; + return language != Language.OBJC; } @Override