Skip to content

Commit 9cd8c65

Browse files
authored
[Executorch][Portable] Compile portable ops with -O2
Differential Revision: D64910578 Pull Request resolved: #6519
1 parent 20d8364 commit 9cd8c65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def define_op_library(name, deps, android_deps, aten_target, _allow_third_party_
150150
# library, and it blocks users like unit tests to use kernel
151151
# implementation directly. So we enable this for xplat only.
152152
["-fvisibility=hidden"] if is_xplat() else []
153-
),
153+
) + get_compiler_optimization_flags(),
154154
deps = [
155155
"//executorch/runtime/kernel:kernel_includes" + aten_suffix,
156156
] + deps,

0 commit comments

Comments
 (0)