Skip to content

Commit 10a57b5

Browse files
fix pybind issue in windows (#3801)
1 parent 5dce761 commit 10a57b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def run(self):
631631
),
632632
extra_compile_args=(
633633
[
634-
f'/DPYBIND11_BUILD_ABI=\\"{torch._C._PYBIND11_BUILD_ABI}\\"',
634+
f'/DPYBIND11_BUILD_ABI=\\"{getattr(torch._C, "_PYBIND11_BUILD_ABI", "_cxxabi1018")}\\"',
635635
"/GS-",
636636
"/permissive-",
637637
"/utf-8",

0 commit comments

Comments
 (0)