We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e444de commit b44c4d2Copy full SHA for b44c4d2
1 file changed
setup.py
@@ -36,6 +36,18 @@
36
"src/pytest_codspeed/instruments/hooks/instrument-hooks/dist/core.c",
37
],
38
include_dirs=["src/pytest_codspeed/instruments/hooks/instrument-hooks/includes"],
39
+ # IMPORTANT: Keep in sync with instrument-hooks/.github/workflows/ci.yml
40
+ # (COMMON_CFLAGS). The Zig-generated core.c emits many warnings that
41
+ # upstream silences; in particular distros like Nix/Debian/Fedora inject
42
+ # -Werror=format-security, which would otherwise fail the build.
43
+ extra_compile_args=[
44
+ "-Wno-format",
45
+ "-Wno-format-security",
46
+ "-Wno-unused-but-set-variable",
47
+ "-Wno-unused-const-variable",
48
+ "-Wno-type-limits",
49
+ "-Wno-uninitialized",
50
+ ],
51
optional=not IS_EXTENSION_REQUIRED,
52
)
53
0 commit comments