Skip to content

Commit 6c178de

Browse files
committed
Update on "[Executorch] enable sleef consistently"
Earlier only android platofrms had support for sleef Differential Revision: [D64571782](https://our.internmc.facebook.com/intern/diff/D64571782/) [ghstack-poisoned]
2 parents fce1eb5 + 611ce33 commit 6c178de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kernels/optimized/lib_defs.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ def get_vec_preprocessor_flags():
1919
if not runtime.is_oss:
2020
# various ovr_configs are not available in oss
2121
preprocessor_flags = select({
22+
"ovr_config//os:linux-x86_64": [
23+
"-DET_BUILD_ARM_VEC256_WITH_SLEEF",
24+
] if not runtime.is_oss else [],
2225
"ovr_config//os:iphoneos": [
2326
"-DET_BUILD_ARM_VEC256_WITH_SLEEF",
2427
] if not runtime.is_oss else [],

0 commit comments

Comments
 (0)