diff --git a/setup.py b/setup.py index 26f1edd..fcf6567 100644 --- a/setup.py +++ b/setup.py @@ -60,7 +60,7 @@ def cpp_flag(compiler): """Return the -std=c++[11/14/17] compiler flag. The newer version is prefered over c++11 (when it is available). """ - flags = ['-std=c++17', '-std=c++14', '-std=c++11'] + flags = ['-std=c++14'] # , '-std=c++14', '-std=c++11'] for flag in flags: if has_flag(compiler, flag): @@ -94,6 +94,9 @@ def build_extensions(self): opts.append(cpp_flag(self.compiler)) if has_flag(self.compiler, '-fvisibility=hidden'): opts.append('-fvisibility=hidden') + opts.append('-Wall') + opts.append('-Wextra') + opts.append('-pedantic') for ext in self.extensions: ext.define_macros = [ ('VERSION_INFO', '"{}"'.format(self.distribution.get_version()))]