mirror of
https://github.com/esphome/esphome.git
synced 2026-09-02 02:56:01 +00:00
Build benchmark library with -O2 to inline instrumentation hooks
This commit is contained in:
@@ -134,6 +134,9 @@ def _write_library_json(
|
||||
f"-I{core_include}",
|
||||
f"-I{hooks_include}",
|
||||
# google benchmark build flags
|
||||
# -O2 is critical: without it, instrument_hooks_start_benchmark_inline
|
||||
# doesn't get inlined and shows up as overhead in profiles
|
||||
"-O2",
|
||||
"-DNDEBUG",
|
||||
"-DHAVE_STD_REGEX",
|
||||
"-DHAVE_STEADY_CLOCK",
|
||||
|
||||
Reference in New Issue
Block a user