From 416d4cb7c95ddd47e91fa1e8849d671db078b2e5 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 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