diff options
| author | Crucible <crucible@localhost> | 2026-10-15 03:05:03 -0500 |
|---|---|---|
| committer | Crucible <crucible@localhost> | 2026-10-15 03:05:03 -0500 |
| commit | 12d66102ecbcb4a4eef51d1b7f06abe9080be243 (patch) | |
| tree | 3fbf63175ea094d55f2853b4b70bcef5e48a6f57 /dev-python/fastsimdjson/files | |
| parent | f2908082da3eb11b2ab459032e0b91aaf4433ff2 (diff) | |
| download | srcux-12d66102ecbcb4a4eef51d1b7f06abe9080be243.tar.gz srcux-12d66102ecbcb4a4eef51d1b7f06abe9080be243.tar.xz srcux-12d66102ecbcb4a4eef51d1b7f06abe9080be243.zip | |
Publish srcux candidate 0000000656-20261015-030307
Diffstat (limited to 'dev-python/fastsimdjson/files')
| -rw-r--r-- | dev-python/fastsimdjson/files/fastsimdjson-0.8.0-unbundle.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/fastsimdjson/files/fastsimdjson-0.8.0-unbundle.patch b/dev-python/fastsimdjson/files/fastsimdjson-0.8.0-unbundle.patch new file mode 100644 index 000000000000..cd1ad24cdf80 --- /dev/null +++ b/dev-python/fastsimdjson/files/fastsimdjson-0.8.0-unbundle.patch @@ -0,0 +1,54 @@ +diff --git a/setup.py b/setup.py +index 5b96127..1accfc0 100644 +--- a/setup.py ++++ b/setup.py +@@ -10,11 +10,11 @@ DEFINES = [("NDEBUG", None), ("SIMDJSON_ENABLE_NAN_INF", "1")] + ext = Extension( + "fastsimdjson", + # src/fastsimdjson.cpp includes vendor/simdjson.cpp (a unity build). +- sources=["src/fastsimdjson.cpp", "vendor/simdutf.cpp"], +- depends=["vendor/simdjson.cpp", "vendor/simdjson.h", "vendor/simdutf.h", +- "vendor/zmij.h", "vendor/zmij.cc"], +- include_dirs=["vendor"], ++ sources=["src/fastsimdjson.cpp"], ++ depends=[], ++ include_dirs=[], + language="c++", ++ libraries=["simdjson", "simdutf", "zmij"], + define_macros=DEFINES, + ) + +@@ -23,15 +23,8 @@ class BuildExt(build_ext): + def build_extensions(self): + msvc = self.compiler.compiler_type == "msvc" + args = ["/std:c++17", "/O2", "/EHsc", "/utf-8"] if msvc else ["-std=c++17", "-O3"] +- # zmij (float formatting) is compiled as C++14: some compilers reject +- # its constant tables in C++17 mode. +- zmij_args = ["/std:c++14", "/O2", "/EHsc"] if msvc else ["-std=c++14", "-O3"] +- zmij = self.compiler.compile([os.path.join("vendor", "zmij.cc")], +- output_dir=self.build_temp, include_dirs=["vendor"], +- macros=[("NDEBUG", None)], extra_postargs=zmij_args) + for e in self.extensions: + e.extra_compile_args = args +- e.extra_objects = list(zmij) + super().build_extensions() + + +diff --git a/src/fastsimdjson.cpp b/src/fastsimdjson.cpp +index f7fcf2b..c273e26 100644 +--- a/src/fastsimdjson.cpp ++++ b/src/fastsimdjson.cpp +@@ -30,10 +30,9 @@ + + // simdjson.cpp is compiled here (a unity build) so that dumps can call its + // float-to-decimal routine, dtoa_impl::dragonbox, directly. +-#include "simdjson.h" +-#include "simdjson.cpp" +-#include "simdutf.h" +-#include "zmij.h" // shortest float digits for dumps and dumpb (vendor/zmij.cc) ++#include <simdjson.h> ++#include <simdutf.h> ++#include <zmij.h> // shortest float digits for dumps and dumpb (vendor/zmij.cc) + + #ifdef _MSC_VER + #include <intrin.h> |
