File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
load ("@fbsource//xplat/executorch/build:runtime_wrapper.bzl" , "runtime" )
2
+ load (
3
+ "@fbsource//xplat/executorch/kernels/portable:op_registration_util.bzl" ,
4
+ "get_compiler_optimization_flags" ,
5
+ )
6
+
2
7
3
8
def define_common_targets ():
4
9
"""Defines targets that should be shared between fbcode and xplat.
@@ -34,7 +39,7 @@ def define_common_targets():
34
39
"//executorch/kernels/portable/cpu/util:reduce_util" ,
35
40
"//executorch/extension/llm/custom_ops/spinquant:fast_hadamard_transform" ,
36
41
],
37
- compiler_flags = ["-Wno-missing-prototypes" , "-Wno-global-constructors" ],
42
+ compiler_flags = ["-Wno-missing-prototypes" , "-Wno-global-constructors" ] + get_compiler_optimization_flags () ,
38
43
visibility = [
39
44
"//executorch/..." ,
40
45
"//executorch/extension/llm/custom_ops/..." ,
You can’t perform that action at this time.
0 commit comments