Skip to content

Commit 1347e97

Browse files
committed
[Executorch] Make apple take accelerate path for blas
For some reason fbobjc_exported_preprocessor_flags does not seems to work. Thus taking 'select' route which seems to work. Differential Revision: [D64499608](https://our.internmc.facebook.com/intern/diff/D64499608/) ghstack-source-id: 248424138 Pull Request resolved: #6312
1 parent 9245b06 commit 1347e97

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

kernels/optimized/lib_defs.bzl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,18 @@ def define_libs():
130130
":linux-x86_64": [
131131
"-DET_BUILD_WITH_BLAS",
132132
] if not runtime.is_oss else [],
133+
"ovr_config//os:iphoneos": [
134+
"-DET_BUILD_WITH_BLAS",
135+
"-DET_BUILD_FOR_APPLE",
136+
] if not runtime.is_oss else [],
137+
"ovr_config//os:macos-arm64": [
138+
"-DET_BUILD_WITH_BLAS",
139+
"-DET_BUILD_FOR_APPLE",
140+
] if not runtime.is_oss else [],
141+
"ovr_config//os:macos-x86_64": [
142+
"-DET_BUILD_WITH_BLAS",
143+
"-DET_BUILD_FOR_APPLE",
144+
] if not runtime.is_oss else [],
133145
"DEFAULT": [],
134146
}),
135147
fbandroid_platform_preprocessor_flags = [

0 commit comments

Comments
 (0)