Remove -O3 compile flag
authorJulian Gilbey <jdg@debian.org>
Sun, 14 Aug 2022 07:56:26 +0000 (08:56 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Sun, 14 Aug 2022 07:56:26 +0000 (08:56 +0100)
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
setup_pydevd_cython.py

index 215bd94bee4fe05d42769fd53483132ae17682c0..453f06cfec2e8450038f5350a3cba79621cb594c 100644 (file)
--- 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\r
         # Profiling shows an execution around 3-5% slower with -Os vs -O3,\r
         # so, kept only -flto.\r
-        extra_compile_args = ["-flto", "-O3"]\r
+        extra_compile_args = ["-flto"]\r
         extra_link_args = extra_compile_args[:]\r
 \r
         # Note: also experimented with profile-guided optimization. The executable\r
index 5b395ddcf09d9e3538a85ad11a25a317925f5543..3d2be4a98eb00315e4705e5b5e7cc1f91671e313 100644 (file)
@@ -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