diff --git a/polybuild/polybuild.py b/polybuild/polybuild.py index 39df139f..ec73d852 100644 --- a/polybuild/polybuild.py +++ b/polybuild/polybuild.py @@ -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: