Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix building on GCC11 (see #72) by forcing std=c++11 in setup.py #75

Merged
merged 1 commit into from
Jun 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix building on GCC11 (see #72) by forcing std=c++11
karpov-sv committed Jun 2, 2022
commit 8f013ac410560d1f6f6ff62ba5723a9865398ed1
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -123,6 +123,8 @@ def check_flags(compiler):
cflags = extra_compile_args
lflags = extra_link_args

cflags += ["-std=c++11"]

if platform.system() == "Darwin":
# Usually Macs need this, but they might not, so try it, and only add
# if it works.