From: Julian Gilbey Date: Mon, 8 Aug 2022 19:07:18 +0000 (+0100) Subject: Remove -O3 compile flag X-Git-Tag: archive/raspbian/2.8.0+git20220826.8ee4065+ds-1+rpi1~1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0f0515b3b0b159120ed18d12c02b7008d0a51ead;p=pydevd.git 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 --- 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