diff --git a/script/cpp_benchmark.py b/script/cpp_benchmark.py index d4799388458..74878154027 100755 --- a/script/cpp_benchmark.py +++ b/script/cpp_benchmark.py @@ -53,6 +53,7 @@ def run_benchmarks(selected_components: list[str], build_only: bool = False) -> # CODSPEED_ROOT_DIR is used to display relative file paths in reports. project_root = Path(__file__).resolve().parent.parent codspeed_flags = [ + "-DNDEBUG", "-DCODSPEED_ENABLED", "-DCODSPEED_ANALYSIS", f'-DCODSPEED_ROOT_DIR=\\"{project_root}\\"', diff --git a/script/setup_codspeed_lib.py b/script/setup_codspeed_lib.py index b34eed48162..b89f5ef7801 100755 --- a/script/setup_codspeed_lib.py +++ b/script/setup_codspeed_lib.py @@ -134,6 +134,7 @@ def _write_library_json( f"-I{core_include}", f"-I{hooks_include}", # google benchmark build flags + "-DNDEBUG", "-DHAVE_STD_REGEX", "-DHAVE_STEADY_CLOCK", "-DBENCHMARK_STATIC_DEFINE",