Skip to content

Commit

Permalink
Back to using -std=c++11, as certain versions of C++ compilers
Browse files Browse the repository at this point in the history
need it to compile the C++ source (which technically *is* using
the C++11 standard). Why oh why can't clang not just ignore any
-std=c++11 option for C sources? Or why doesn't setup.py allow
setting different compile options for C and C++ sources?
  • Loading branch information
Paul Melis committed Aug 20, 2019
1 parent 3fb2364 commit ce91cc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

module1 = Extension('readply',
include_dirs = ['./rply', numpy.get_include()],
sources = ['readply.cpp', 'rply/rply.c'])
sources = ['readply.cpp', 'rply/rply.c'],
extra_compile_args = ['-std=c++11']
)

setup(
name = 'readply',
Expand Down

0 comments on commit ce91cc2

Please sign in to comment.