File: 0002-Drop-unneeded-compilation-options.patch

package info (click to toggle)
python-backports.zstd 1.3.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,056 kB
  • sloc: python: 18,504; ansic: 5,361; sh: 44; makefile: 18
file content (26 lines) | stat: -rw-r--r-- 656 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: YOKOTA Hiroshi <yokota.hgml@gmail.com>
Date: Mon, 15 Dec 2025 18:09:12 +0900
Subject: Drop unneeded compilation options

Forwarded: not-needed
---
 setup.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/setup.py b/setup.py
index 33fafc9..75ee1b1 100644
--- a/setup.py
+++ b/setup.py
@@ -43,12 +43,6 @@ def build_extension():
         ],
     )
 
-    if _PLATFORM_IS_WIN:
-        kwargs["extra_compile_args"] += ["/Ob3", "/GF", "/Gy"]
-    else:
-        kwargs["extra_compile_args"] += ["-g0", "-flto"]
-        kwargs["extra_link_args"] += ["-g0", "-flto"]
-
     if _SYSTEM_ZSTD:
         kwargs["libraries"].append("zstd")
     else: