Skip to content

Commit

Permalink
Use /utf-8 compiler option to fix MSVC C4819 warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Nov 30, 2024
1 parent bf7cd9f commit ba26f24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,12 @@ def search_system_path(file_name: str) -> Optional[str]: # type: ignore # Missi
raise Exception('cl.exe not found. Run again from the Developer Command Prompt for VS')
cflags = ['/showIncludes',
'/nologo', # Don't print startup banner.
'/utf-8',
'/Zi', # Create pdb with debug info.
'/W4', # Highest warning level.
'/WX', # Warnings as errors.
'/wd4530', '/wd4100', '/wd4706', '/wd4244',
'/wd4512', '/wd4800', '/wd4702', '/wd4819',
'/wd4512', '/wd4800', '/wd4702',
# Disable warnings about constant conditional expressions.
'/wd4127',
# Disable warnings about passing "this" during initialization.
Expand Down

0 comments on commit ba26f24

Please sign in to comment.