From 47dcff0842504287ad23c94ba55d0f23986b98b6 Mon Sep 17 00:00:00 2001 From: Milen Dzhumerov Date: Fri, 1 Nov 2024 07:29:32 -0700 Subject: [PATCH] ARVR: exclude arvr mode from suffixing checks Summary: Adjusts meta library validation condition. Reviewed By: benb Differential Revision: D65332507 fbshipit-source-id: 3157e46575ffef80683cada808965fa1cf32c395 --- apple/apple_common.bzl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apple/apple_common.bzl b/apple/apple_common.bzl index cf9f369e9..d4eb3a9b8 100644 --- a/apple/apple_common.bzl +++ b/apple/apple_common.bzl @@ -176,6 +176,13 @@ def _meta_apple_library_validation_enabled_default_value(): return False meta_apple_library_validation_enabled_default = (read_root_config("apple", "meta_apple_library_validation", "false").lower() == "true") + + is_arvr_build = (read_root_config("fb", "arvr_build", "false").lower() == "true") + if is_arvr_build: + # Not all arvr builds have `arvr_mode_enabled` constraint, so under arvr + # build mode, always disable suffixing checks as those graphs are not suffixed + return False + return select({ "DEFAULT": select({ "DEFAULT": meta_apple_library_validation_enabled_default,