pytorch
0f0a5b11 - Disable C4251 when compiling cpp_extensions on Windows (#35272)

Commit
4 years ago
Disable C4251 when compiling cpp_extensions on Windows (#35272) Summary: Otherwise, VC++ will warn that every exposed C++ symbol, for example: ``` include\c10/core/impl/LocalDispatchKeySet.h(53): warning C4251: 'c10::impl::LocalDispatchKeySet::included_': class 'c10::DispatchKeySet' needs to have dll-interface to be used by clients of struct 'c10::impl::LocalDispatchKeySet' ``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/35272 Test Plan: CI Differential Revision: D20623005 Pulled By: malfet fbshipit-source-id: b635b674159bb9654e4e1a1af4394c4f36fe35bd
Author
Parents
Loading