File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
shim_et/xplat/executorch/kernels/optimized Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,17 @@ OPTIMIZED_ATEN_OPS = (
165
165
),
166
166
op_target (
167
167
name = "op_div" ,
168
+ # A bug in instruction selection in clang 19 for android seems to trigger some
169
+ # terrible, multiple hour, backend generation when building for asan with thinlto.
170
+ # generally maybe a good idea to just make this fully optimized anyway, but -O2
171
+ # is not sufficient to avoid it.
172
+ compiler_flags = [] if runtime .is_oss else select ({
173
+ "DEFAULT" : [],
174
+ "ovr_config//toolchain/clang/constraints:19" : select ({
175
+ "DEFAULT" : [],
176
+ "ovr_config//os:android" : ["-O3" ],
177
+ }),
178
+ }),
168
179
deps = [
169
180
":binary_ops" ,
170
181
"//executorch/kernels/portable/cpu:scalar_utils" ,
You can’t perform that action at this time.
0 commit comments