From ba1037ffbf531d360852ffec2c79b09171483e77 Mon Sep 17 00:00:00 2001 From: Julian Gilbey Date: Mon, 5 Sep 2022 21:56:24 +0100 Subject: [PATCH] Remove -O3 compile flag Forwarded: not-needed Last-Update: 2022-06-14 We use the standard Debian compilation flags Gbp-Pq: Name do-not-use-O3-compile-flag.patch --- setup.py | 2 +- setup_pydevd_cython.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 215bd94..453f06c 100644 --- a/setup.py +++ b/setup.py @@ -117,7 +117,7 @@ try: # Enabling -flto brings executable from 4MB to 0.56MB and -Os to 0.41MB # Profiling shows an execution around 3-5% slower with -Os vs -O3, # so, kept only -flto. - extra_compile_args = ["-flto", "-O3"] + extra_compile_args = ["-flto"] extra_link_args = extra_compile_args[:] # Note: also experimented with profile-guided optimization. The executable diff --git a/setup_pydevd_cython.py b/setup_pydevd_cython.py index 5b395dd..3d2be4a 100644 --- a/setup_pydevd_cython.py +++ b/setup_pydevd_cython.py @@ -169,7 +169,7 @@ def build_extension(dir_name, extension_name, target_pydevd_name, force_cython, # Enabling -flto brings executable from 4MB to 0.56MB and -Os to 0.41MB # Profiling shows an execution around 3-5% slower with -Os vs -O3, # so, kept only -flto. - extra_compile_args = ["-flto", "-O3"] + extra_compile_args = ["-flto"] extra_link_args = extra_compile_args[:] # Note: also experimented with profile-guided optimization. The executable -- 2.30.2