File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,18 @@ def get_vec_fbcode_preprocessor_flags():
7171 ]
7272 return preprocessor_flags
7373
74+ def get_apple_framework_deps ():
75+ # various ovr_configs are not available in oss
76+ if not runtime .is_oss :
77+ frameworks = select ({
78+ "DEFAULT" : [],
79+ "ovr_config//os:iphoneos" : ["$SDKROOT/System/Library/Frameworks/Accelerate.framework" ],
80+ "ovr_config//os:macos-arm64" : ["$SDKROOT/System/Library/Frameworks/Accelerate.framework" ],
81+ "ovr_config//os:macos-x86_64" : ["$SDKROOT/System/Library/Frameworks/Accelerate.framework" ],
82+ })
83+ return frameworks
84+ return ["Accelerate" ]
85+
7486def get_preprocessor_flags ():
7587 # various ovr_configs are not available in oss
7688 preprocessor_flags = select ({
@@ -185,9 +197,7 @@ def define_libs():
185197 "-DET_BUILD_WITH_BLAS" ,
186198 "-DET_BUILD_FOR_APPLE" ,
187199 ],
188- fbobjc_frameworks = [
189- "Accelerate" ,
190- ],
200+ frameworks = get_apple_framework_deps (),
191201 deps = select ({
192202 ":linux-x86_64" : [mkl_dep ] if not runtime .is_oss else [],
193203 "DEFAULT" : [],
You can’t perform that action at this time.
0 commit comments