Skip to content

Commit

Permalink
Merge pull request #80 from trailofbits/carson/polybuild_quick_add
Browse files Browse the repository at this point in the history
Catch flags for Wall, Werror (does not play nice with our arg injecti…
  • Loading branch information
carsonharmon authored Jul 20, 2020
2 parents 60d9db8 + 6bdcf5c commit 4a32526
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions polybuild/polybuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ def poly_build(self, argv) -> bool:
compile_command.append("-I" + self.meta.compiler_dir + "/../cxx_libs/include/c++/v1/")
compile_command.append("-L" + self.meta.compiler_dir + "/../cxx_libs/lib/")
for arg in argv[1:]:
if arg == "-Wall" or arg == "-Wextra" or arg == "-Wno-unused-parameter" or arg == "-Werror":
continue
compile_command.append(arg)
is_linking = self.poly_is_linking(argv)
if is_linking:
Expand Down

0 comments on commit 4a32526

Please sign in to comment.