Skip to content

Commit

Permalink
RHA
Browse files Browse the repository at this point in the history
  • Loading branch information
Thopic committed Sep 7, 2024
1 parent 43258b5 commit 6080e94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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()))]
Expand Down

0 comments on commit 6080e94

Please sign in to comment.