Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass -Wpass-failed=transform-warning #338

Draft
wants to merge 1 commit into
base: main-dev
Choose a base branch
from
Draft
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
2 changes: 2 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
"-fexceptions",
"-Wno-unknown-pragmas",
"-Wno-maybe-uninitialized",
"-Wpass=transform-warning"
],
"cflags_cc": [
"-fexceptions",
"-Wno-unknown-pragmas",
"-Wno-maybe-uninitialized",
"-Wpass=transform-warning",
"-std=c++17",
],
"include_dirs": [
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def get_bool_env_w_name(name: str, preference: bool) -> tuple:
compile_args.append("-std=c++17")
compile_args.append("-O3") # Maximize performance
compile_args.append("-ffast-math") # Maximize floating-point performance
compile_args.append("-Wpass-failed=transform-warning")
compile_args.append("-Wno-unknown-pragmas")
compile_args.append("-fdiagnostics-color=always")

Expand Down Expand Up @@ -83,6 +84,7 @@ def get_bool_env_w_name(name: str, preference: bool) -> tuple:
compile_args.append("-O3") # Maximize performance
compile_args.append("-ffast-math") # Maximize floating-point performance
compile_args.append("-fcolor-diagnostics")
compile_args.append("-Wpass-failed=transform-warning")
compile_args.append("-Wno-unknown-pragmas")

# Simplify debugging, but the normal `-g` may make builds much longer!
Expand Down
Loading