From 3ee7376b4f42f306870799e780f0056b11723d7d Mon Sep 17 00:00:00 2001 From: Kimish Patel Date: Fri, 1 Nov 2024 07:10:11 -0700 Subject: [PATCH] [Executorch] Revert compile optimizatin flags for op libs Reverting this change for now due to app size regression Differential Revision: [D65336831](https://our.internmc.facebook.com/intern/diff/D65336831/) [ghstack-poisoned] --- .../kernels/portable/op_registration_util.bzl | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/shim/xplat/executorch/kernels/portable/op_registration_util.bzl b/shim/xplat/executorch/kernels/portable/op_registration_util.bzl index 6a25f35c304..7c560f8acba 100644 --- a/shim/xplat/executorch/kernels/portable/op_registration_util.bzl +++ b/shim/xplat/executorch/kernels/portable/op_registration_util.bzl @@ -2,21 +2,7 @@ load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "is_xplat", "runti load("@fbsource//xplat/executorch/build:selects.bzl", "selects") def get_compiler_optimization_flags(): - # various ovr_configs are not available in oss - if not runtime.is_oss: - compiler_flags = select({ - "DEFAULT": [], - "ovr_config//os:android-arm64": [ - "-O2", - ], - "ovr_config//os:iphoneos": [ - "-O2", - ], - "ovr_config//os:macos-arm64": [ - "-O2", - ], - }) - return compiler_flags + # App size regressons requires this to be baktraced until I have a better solution return [] def op_target(name, deps = [], android_deps = [], _allow_third_party_deps = False, _aten_mode_deps = []):