MINGW-packages/mingw-w64-python-rencode/0001-Remove-extra-compile-args.patch
Dirk Stolle fcc55926a3
python-rencode: update to 1.0.8 (#24764)
Also fix compile flags via patch file.
2025-07-11 04:24:57 +00:00

27 lines
877 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Fri, 20 Jun 2025 18:48:26 +0200
Subject: [PATCH] Remove extra compile args
These are hazardous and cause unintended incompatibilities,
`-march=native` especially so, as it's dependent on the build machine.
Fixes: https://github.com/aresch/rencode/issues/38
---
build.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.py b/build.py
index 658ada290a7a..0d170a3f7c15 100644
--- a/build.py
+++ b/build.py
@@ -11,7 +11,7 @@ from setuptools import Extension
from setuptools.command.build_ext import build_ext
-COMPILE_ARGS = ["-march=native", "-O3", "-msse", "-msse2", "-mfma", "-mfpmath=sse"]
+COMPILE_ARGS: list[str] = []
LINK_ARGS: list[str] = []
INCLUDE_DIRS: list[str] = []
LIBRARIES: list[str] = []