Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions shim_et/xplat/executorch/build/runtime_wrapper.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ def _patch_build_mode_flags(kwargs):
"ovr_config//os:macos": ["-fvisibility=default"],
})

# Add -O2 compiler flag when the compiler_flag_O2 config is set
kwargs["compiler_flags"] = kwargs["compiler_flags"] + select({
"DEFAULT": [],
"fbsource//xplat/assistant/oacr/native/scripts:compiler_flag_O2": ["-O2"],
})

return kwargs

def _patch_test_compiler_flags(kwargs):
Expand Down
Loading