Skip to content
Closed
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"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmn, not seeing this be commented out. It should look like the examples on line 102-112, or this: #15582

})

return kwargs

def _patch_test_compiler_flags(kwargs):
Expand Down
Loading