Skip to content

Commit

Permalink
Merge pull request #233 from robotpy/global-utf8
Browse files Browse the repository at this point in the history
Enable utf-8 flag globally for MSVC
  • Loading branch information
virtuald authored Sep 29, 2024
2 parents cf2c751 + 29b9dc3 commit 4a89428
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions robotpy_build/command/build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ def build_extensions(self):
# Enable standards-compliant preprocessor
if has_flag(self.compiler, "/Zc:preprocessor"):
opts.append("/Zc:preprocessor")
# Enable utf-8 source files.. this probably shouldn't be set globally
if has_flag(self.compiler, "/utf-8"):
opts.append("/utf-8")
if cc_launcher:
# yes, this is terrible. There's really no other way with distutils
def _spawn(cmd):
Expand Down

0 comments on commit 4a89428

Please sign in to comment.