We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98afdeb commit f460594Copy full SHA for f460594
shim_et/xplat/executorch/build/runtime_wrapper.bzl
@@ -117,6 +117,12 @@ def _patch_build_mode_flags(kwargs):
117
"ovr_config//os:macos": ["-fvisibility=default"],
118
})
119
120
+ # Add -O2 compiler flag when the compiler_flag_O2 config is set
121
+ kwargs["compiler_flags"] = kwargs["compiler_flags"] + select({
122
+ "DEFAULT": [],
123
+ # @oss-disable: "fbsource//xplat/assistant/oacr/native/scripts:compiler_flag_O2": ["-O2"],
124
+ })
125
+
126
return kwargs
127
128
def _patch_test_compiler_flags(kwargs):
0 commit comments