Skip to content

Commit

Permalink
explicitly specify c++11 for extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
futscdav committed Apr 19, 2022
1 parent f89bf12 commit efdfdf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup_cpp_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

platform_specific_flags = []
if platform.system() == "Windows":
platform_specific_flags += ["/permissive-", "/Ox"]
platform_specific_flags += ["/permissive-", "/Ox", "/std:c++11"]
else:
platform_specific_flags += ["-O3"]
platform_specific_flags += ["-O3", "--std=c++11"]

ext_modules = [
setuptools.Extension('_C_canvas',
Expand Down

0 comments on commit efdfdf3

Please sign in to comment.