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 @@ -43,6 +43,18 @@ def get_vec_fbcode_preprocessor_flags():
4343 ]
4444 return preprocessor_flags
4545
46+ def get_apple_framework_deps ():
47+ # various ovr_configs are not available in oss
48+ if not runtime .is_oss :
49+ frameworks = select ({
50+ "DEFAULT" : [],
51+ "ovr_config//os:iphoneos" : ["$SDKROOT/System/Library/Frameworks/Accelerate.framework" ],
52+ "ovr_config//os:macos-arm64" : ["$SDKROOT/System/Library/Frameworks/Accelerate.framework" ],
53+ "ovr_config//os:macos-x86_64" : ["$SDKROOT/System/Library/Frameworks/Accelerate.framework" ],
54+ })
55+ return frameworks
56+ return ["Accelerate" ]
57+
4658def get_preprocessor_flags ():
4759 # various ovr_configs are not available in oss
4860 preprocessor_flags = select ({
@@ -182,9 +194,7 @@ def define_libs():
182194 "-DET_BUILD_WITH_BLAS" ,
183195 "-DET_BUILD_FOR_APPLE" ,
184196 ],
185- fbobjc_frameworks = [
186- "Accelerate" ,
187- ],
197+ frameworks = get_apple_framework_deps (),
188198 deps = select ({
189199 ":linux-x86_64" : [mkl_dep ] if not runtime .is_oss else [],
190200 "DEFAULT" : [],
You can’t perform that action at this time.
0 commit comments