Skip to content

Commit 228ee4d

Browse files
fix windows build failure: add /utf-8 (#3684)
1 parent fde92a3 commit 228ee4d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ build:linux --cxxopt="-fdiagnostics-color=always"
2828

2929
build:windows --cxxopt="/GS-" --cxxopt="/std:c++17" --cxxopt="/permissive-"
3030
build:windows --cxxopt="/wd4244" --cxxopt="/wd4267" --cxxopt="/wd4819"
31+
build:windows --cxxopt="/utf-8"
3132
build:windows --features=windows_export_all_symbols
3233

3334
build:python --define=target_lang=python

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ def run(self):
569569
f'/DPYBIND11_BUILD_ABI=\\"{torch._C._PYBIND11_BUILD_ABI}\\"',
570570
"/GS-",
571571
"/permissive-",
572+
"/utf-8",
572573
]
573574
if IS_WINDOWS
574575
else [

0 commit comments

Comments
 (0)