Switch off USE_DISTRIBUTED on default for MSVC (#20302)

Summary:
Fixes https://github.com/pytorch/pytorch/issues/20250
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20302

Differential Revision: D15277733

Pulled By: ezyang

fbshipit-source-id: a8915939d033a04f962908d19bbad840b6234e27
This commit is contained in:
peter
2019-05-09 06:18:37 -07:00
committed by Facebook Github Bot
parent 2aea5b6335
commit 1e35ef07e9

View File

@ -163,6 +163,8 @@ if (MSVC)
string(REGEX REPLACE "/INCREMENTAL" "/INCREMENTAL:NO" ${flag_var} "${${flag_var}}")
endif()
endforeach(flag_var)
# Turning off USE_DISTRIBUTED on default
set(USE_DISTRIBUTED OFF)
endif(MSVC)
# Set INTERN_BUILD_MOBILE for all mobile builds. Components that are not