Drop incremental linking on Windows with REL_WITH_DEB_INFO=1. (#64892)
authorNick Kreeger <nickkreeger@microsoft.com>
Tue, 14 Sep 2021 16:40:33 +0000 (09:40 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 14 Sep 2021 16:44:18 +0000 (09:44 -0700)
commit882b67dff4f8dcf5c7886fc6a5d9f8ac2ae6cd0b
tree8dda6323b4570cbc51732bf110605359c778f772
parent01cfea94851f08e41ea46b206d12a76d1b1ffc2b
Drop incremental linking on Windows with REL_WITH_DEB_INFO=1. (#64892)

Summary:
The library will no longer link properly on VS 2019 (14.29.30133). To
ensure that engineers building on Windows can use and debug with this
build type, incremental linking needs to be turned off for this build
flag.

Verified that this build type successfully builds, links, and provides
debuggable Python modules on Windows.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/64892

Reviewed By: jbschlosser

Differential Revision: D30902565

Pulled By: malfet

fbshipit-source-id: e5286a4c6f45c7cbe4cdc1b98560129bd386970b
CMakeLists.txt
cmake/Dependencies.cmake