mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2025-02-25 15:39:49 +00:00
Allow building bindings with compilers that do not support the -Wno-nonnull-compare
flag
This commit is contained in:
parent
5a112c5c01
commit
c0e955fb97
@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
|
||||
- Allow building Python bindings with Clang versions that do not support some
|
||||
some warning flags.
|
||||
- Specifically `-Wno-nonnull-compare`.
|
||||
|
||||
## [1.12.6] - 2025-02-06
|
||||
|
||||
### Fixed
|
||||
|
1
setup.py
1
setup.py
@ -13,6 +13,7 @@ headersList = [str(x) for x in bindingsPath.glob("**/*.h")] + [str(x) for x in s
|
||||
|
||||
extraCompileArgs = ["-std=c11", "-Wall", "-g",]
|
||||
if platform.system() == "Linux":
|
||||
extraCompileArgs += ["-Wno-unknown-warning-option",]
|
||||
extraCompileArgs += ["-Os", "-Wextra",]
|
||||
extraCompileArgs += ["-Werror=vla", "-Werror=switch", "-Werror=implicit-fallthrough", "-Werror=unused-function", "-Werror=unused-parameter", "-Werror=shadow", "-Werror=switch"]
|
||||
extraCompileArgs += ["-Werror=implicit-function-declaration", "-Werror=incompatible-pointer-types"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user