Skip to content

Commit

Permalink
Fix MSVC by specifying a standard to use.
Browse files Browse the repository at this point in the history
It complains about designated initializers.
  • Loading branch information
jamadden committed Sep 12, 2024
1 parent eeca96d commit 5d79b73
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@
# functions up. Revisit those.
cpp_compile_args.append("/GT")

# MSVC won't handle named struct initializers with its default
# standard. It complains about them instead and tells us to add
# this:
cpp_compile_args.append('/std:c++20')

def readfile(filename):
with open(filename, 'r') as f: # pylint:disable=unspecified-encoding
return f.read()
Expand Down

0 comments on commit 5d79b73

Please sign in to comment.