Skip to content

Commit e85fa87

Browse files
8Keepmeta-codesync[bot]
authored andcommitted
Convert arvr mode constraint to a constraint() rule
Summary: X-link: pytorch/executorch#18818 #force_dangling_check Converting the arvr mode constraint to a constraint(). Reviewed By: rexzhang123 Differential Revision: D99903392 fbshipit-source-id: 090d534b9b57a3e40ac52963a530150a4e9054e0
1 parent 4a7bcd7 commit e85fa87

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

quic/BUCK

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mvfst_cpp_library(
2626
"DEFAULT": {
2727
"QuicEnum.h": "facebook/QuicEnumMobile.h",
2828
},
29-
"ovr_config//build_mode/constraints:arvr_mode_enabled": {
29+
"ovr_config//build_mode:arvr_mode[enabled]": {
3030
"QuicEnum.h": "QuicEnum.h",
3131
},
3232
}),
@@ -41,7 +41,7 @@ mvfst_cpp_library(
4141
],
4242
"ovr_config//os/constraints:android": select({
4343
"DEFAULT": [],
44-
"ovr_config//build_mode/constraints:arvr_mode_enabled": [
44+
"ovr_config//build_mode:arvr_mode[enabled]": [
4545
"//folly/lang:assume",
4646
"//quic/common/third-party:better_enums",
4747
],
@@ -63,7 +63,7 @@ mvfst_cpp_library(
6363
"ovr_config//runtime/constraints:fbcode": select({
6464
"DEFAULT": {"mvfst-config.h": "facebook/mvfst-config-fbcode.h"}, # @fb-only
6565
"fbcode//quic:use_alt_crypto-enabled": {"mvfst-config.h": "facebook/mvfst-config-alt-crypto.h"}, # @fb-only
66-
"ovr_config//build_mode:arvr_mode": select({
66+
"ovr_config//build_mode:arvr_mode[enabled]": select({
6767
"DEFAULT": {"mvfst-config.h": "mvfst-config.h"}, # @fb-only
6868
"ovr_config//os/constraints:android": {"mvfst-config.h": "facebook/mvfst-config-mobile.h"}, # @fb-only
6969
"ovr_config//os/constraints:iphoneos": {"mvfst-config.h": "facebook/mvfst-config-mobile.h"}, # @fb-only
@@ -154,7 +154,7 @@ mvfst_cpp_library(
154154
"DEFAULT": ["QuicTLSExceptionFizz.cpp"],
155155
"ovr_config//os/constraints:android": select({
156156
"DEFAULT": ["facebook/mbed/QuicTLSExceptionMbed.cpp"], # @fb-only
157-
"ovr_config//build_mode/constraints:arvr_mode_enabled": ["QuicTLSExceptionFizz.cpp"],
157+
"ovr_config//build_mode:arvr_mode[enabled]": ["QuicTLSExceptionFizz.cpp"],
158158
}),
159159
"ovr_config//os/constraints:iphoneos": ["facebook/mbed/QuicTLSExceptionMbed.cpp"], # @fb-only
160160
}),
@@ -169,7 +169,7 @@ mvfst_cpp_library(
169169
"DEFAULT": [
170170
"fbsource//xplat/mobilenetwork:tls_common", # @manual
171171
],
172-
"ovr_config//build_mode/constraints:arvr_mode_enabled": [
172+
"ovr_config//build_mode:arvr_mode[enabled]": [
173173
"//fizz/record:record",
174174
],
175175
}),

quic/defs.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def mvfst_cxx_library(
121121
"DEFAULT": force_static,
122122
"ovr_config//runtime:fbcode": False,
123123
}),
124-
"ovr_config//build_mode:arvr_mode": force_static,
124+
"ovr_config//build_mode:arvr_mode[enabled]": force_static,
125125
})
126126

127127
fb_xplat_cxx_library(
@@ -302,7 +302,7 @@ def mu_cxx_library(
302302
"DEFAULT": force_static,
303303
"ovr_config//runtime:fbcode": False,
304304
}),
305-
"ovr_config//build_mode:arvr_mode": force_static,
305+
"ovr_config//build_mode:arvr_mode[enabled]": force_static,
306306
})
307307

308308
fb_xplat_cxx_library(

quic/fizz/handshake/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ mvfst_cpp_library(
6767
"ovr_config//runtime/constraints:fbcode": select({
6868
"DEFAULT": [], # @fb-only
6969
"fbcode//quic:use_alt_crypto-enabled": ["fbcode//quic/facebook/handshake:xsec_crypto_bridge"], # @fb-only
70-
"ovr_config//build_mode:arvr_mode": [], # @fb-only
70+
"ovr_config//build_mode:arvr_mode[enabled]": [], # @fb-only
7171
"ovr_config//runtime/constraints:android-host-test": [], # @fb-only
7272
}), # @fb-only
7373
}),

quic/state/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ mvfst_cpp_library(
235235
# ARVR Android uses full stats callback
236236
"ovr_config//os/constraints:android": select({
237237
"DEFAULT": {"QuicTransportStatsCallback.h": "facebook/QuicTransportStatsCallbackMobile.h"},
238-
"ovr_config//build_mode/constraints:arvr_mode_enabled": {"QuicTransportStatsCallback.h": "QuicTransportStatsCallback.h"},
238+
"ovr_config//build_mode:arvr_mode[enabled]": {"QuicTransportStatsCallback.h": "QuicTransportStatsCallback.h"},
239239
}),
240240
"ovr_config//os/constraints:iphoneos": {"QuicTransportStatsCallback.h": "facebook/QuicTransportStatsCallbackMobile.h"},
241241
}),
@@ -252,7 +252,7 @@ mvfst_cpp_library(
252252
"//quic:exception",
253253
"//quic/common:optional",
254254
],
255-
"ovr_config//build_mode/constraints:arvr_mode_enabled": [
255+
"ovr_config//build_mode:arvr_mode[enabled]": [
256256
"//folly/functional:invoke",
257257
"//quic:constants",
258258
"//quic:exception",

0 commit comments

Comments
 (0)