Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.

## Unreleased

- Upgrade zstd source code from v1.5.6 to [v1.5.7](https://github.com/facebook/zstd/releases/tag/v1.5.7)
- Support for PyPy 3.11

## 0.16.2 (October 10, 2024)
Expand Down
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ def build_extensions(self):
# Build debug build
self.debug = self.PYZSTD_DEBUG

if self.compiler.compiler_type in ('unix', 'mingw32', 'cygwin'):
# Remove -Wunreachable-code default args based on how Python was build
# see distutils.sysconfig.get_config_var("CFLAGS")
# see https://github.com/facebook/zstd/issues/4308
self.compiler.compiler = [part for part in self.compiler.compiler if part != '-Wunreachable-code']
self.compiler.compiler_so = [part for part in self.compiler.compiler_so if part != '-Wunreachable-code']

for extension in self.extensions:
if self.compiler.compiler_type in ('unix', 'mingw32', 'cygwin'):
# -g0:
Expand Down
2 changes: 1 addition & 1 deletion zstd
Submodule zstd updated 166 files