diff options
| author | Michael Williamson <mike@zwobble.org> | 2025-03-09 11:14:34 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2025-03-09 11:17:51 +0000 |
| commit | 7272fc88dd736d4397c41df6444f8b23f9756351 (patch) | |
| tree | 9260b705f89735383f26e2f91c7a936ffe6acbb8 | |
| parent | e646b6470312adf7b183a10cfdbf7095d2499421 (diff) | |
Add explanatory comment for MS_WIN64
| -rw-r--r-- | setup.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -98,7 +98,9 @@ else: jq_extension = Extension( "jq", sources=["jq.pyx"], - define_macros=[("MS_WIN64" , 1)] if os.name == "nt" and sys.maxsize > 2**32 else None, # https://github.com/cython/cython/issues/2670 + # MS_WIN64 has to be set to successfully build when using MinGW for 64-bit + # Windows. See: https://github.com/cython/cython/issues/2670 + define_macros=[("MS_WIN64" , 1)] if os.name == "nt" and sys.maxsize > 2**32 else None, include_dirs=[os.path.join(jq_lib_dir, "src")], extra_link_args=["-lm"] + (["-Wl,-Bstatic", "-lpthread", "-lshlwapi", "-static-libgcc"] if os.name == 'nt' else []) + link_args_deps, extra_objects=extra_objects, |
