Skip to content

Commit 3b458a7

Browse files
[Executorch] Revert compile optimizatin flags for op libs (#6618)
Reverting this change for now due to app size regression Differential Revision: [D65336831](https://our.internmc.facebook.com/intern/diff/D65336831/) ghstack-source-id: 251333393 Pull Request resolved: #6609 Co-authored-by: Kimish Patel <[email protected]>
1 parent 046a4e4 commit 3b458a7

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

shim/xplat/executorch/kernels/portable/op_registration_util.bzl

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,7 @@ load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "is_xplat", "runti
22
load("@fbsource//xplat/executorch/build:selects.bzl", "selects")
33

44
def get_compiler_optimization_flags():
5-
# various ovr_configs are not available in oss
6-
if not runtime.is_oss:
7-
compiler_flags = select({
8-
"DEFAULT": [],
9-
"ovr_config//os:android-arm64": [
10-
"-O2",
11-
],
12-
"ovr_config//os:iphoneos": [
13-
"-O2",
14-
],
15-
"ovr_config//os:macos-arm64": [
16-
"-O2",
17-
],
18-
})
19-
return compiler_flags
5+
# App size regressons requires this to be baktraced until I have a better solution
206
return []
217

228
def op_target(name, deps = [], android_deps = [], _allow_third_party_deps = False, _aten_mode_deps = []):

0 commit comments

Comments
 (0)