From 6080e942294a7fde3b10da4b7995cf22f75ff479 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 7 Sep 2024 16:05:37 -0400 Subject: [PATCH] RHA --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()))]