Skip to content

Commit 274b1a2

Browse files
committed
0.4.1-release
1 parent 3cc05d6 commit 274b1a2

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

build_counter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class VersionStatus(Enum):
2525

2626
__major_version__ = 0
2727
__minor_version__ = 4
28-
__revision_version__ = 0
28+
__revision_version__ = 1
2929
__author__ = "@joocer"
3030
__status__ = VersionStatus.RELEASE
3131

draken/__version__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# THIS FILE IS AUTOMATICALLY UPDATED DURING THE BUILD PROCESS
22
# DO NOT EDIT THIS FILE DIRECTLY
33

4-
__build__ = 86
4+
__build__ = 87
55
__author__ = "@joocer"
6-
__version__ = "0.4.0"
6+
__version__ = "0.4.1"
77

88
# Store the version here so:
99
# 1) we don't load dependencies by storing it in __init__.py

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ requires-python = ">=3.11"
66
readme = "dynamic"
77
authors = [{name="Justin Joyce", email="[email protected]"}]
88
maintainers = [{name="Justin Joyce", email="[email protected]"}]
9-
version = "0.4.0"
9+
version = "0.4.1"
1010

1111
[project.optional-dependencies]
1212
arrow = [

setup.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ def is_win(): # pragma: no cover
4848
elif is_win():
4949
CPP_COMPILE_FLAGS += ["/std:c++17"]
5050
else:
51-
# Use x86-64-v3 (AVX2) as baseline - widely supported since 2013
52-
# Avoid -march=native to prevent AVX-512 and newer CPU-specific instructions
53-
CPP_COMPILE_FLAGS += ["-std=c++17", "-march=x86-64-v3", "-fvisibility=default"]
54-
C_COMPILE_FLAGS += ["-march=x86-64-v3", "-fvisibility=default"]
51+
# Target AVX2-era CPUs (2013+) without relying on -march=native or x86-64-v3, which older GCC
52+
# releases do not recognise. Explicitly request AVX2 features while avoiding AVX-512.
53+
avx2_flags = ["-mavx2", "-mfma", "-mf16c"]
54+
CPP_COMPILE_FLAGS += ["-std=c++17", "-fvisibility=default"] + avx2_flags
55+
C_COMPILE_FLAGS += ["-fvisibility=default"] + avx2_flags
5556

5657
include_dirs = []
5758
# Get the C++ include directory
@@ -195,10 +196,9 @@ def is_win(): # pragma: no cover
195196
# This is a good baseline for modern CPUs (2013+) while avoiding AVX-512
196197
machine = platform.machine().lower()
197198
system = platform.system().lower()
198-
if machine.startswith("arm") and not machine.startswith("aarch64"):
199-
if system != "darwin":
200-
# ARM32 NEON is generally safe as baseline
201-
CPP_COMPILE_FLAGS.append("-mfpu=neon")
199+
if machine.startswith("arm") and not machine.startswith("aarch64") and system != "darwin":
200+
# ARM32 NEON is generally safe as baseline
201+
CPP_COMPILE_FLAGS.append("-mfpu=neon")
202202

203203
setup_config = {
204204
"name": LIBRARY,

0 commit comments

Comments
 (0)