microsoft / DirectXTK12

The DirectX Tool Kit (aka DirectXTK12) is a collection of helper classes for writing DirectX 12 code in C++
https://walbourn.github.io/directx-tool-kit-for-directx-12/
MIT License
1.51k stars 407 forks source link

Disable Edit and Continue for Debug configs of library #112

Closed walbourn closed 2 years ago

walbourn commented 2 years ago

When consuming the NuGet, if you have your Debug configuration set to /INCREMENTAL:NO, then will get these warnings from the linker from DirectXTK object files:

warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification

This is because the default settings for VS Debug is /ZI and /INCREMENTAL:YES. There's no need to have Edit & Continue enabled for the Debug version of libraries--it's already disabled for Release.

walbourn commented 2 years ago

A workaround for now is add to client projects: Project Properties -> Linker -> Command Line -> AdditionalOptions /IGNORE:4075.

walbourn commented 2 years ago

Fixed in these commits:

https://github.com/microsoft/DirectXTK12/commit/f90a9f896b8482b8e8ae21867abdb8d38d13ccb8

https://github.com/microsoft/DirectXTK/commit/faa6bd944a2dfd7b6708068d210c379f4ed82e6a

https://github.com/microsoft/DirectXTex/commit/13c35062b84f0a724802705766b73ececa95371c https://github.com/microsoft/DirectXTex/commit/faa554b8024568f5c7107b942604f3b6374dc509

https://github.com/microsoft/DirectXMesh/commit/6fa1c7a5e72866a161f3fe92a5b3439b1b324dd4 https://github.com/microsoft/DirectXMesh/commit/59626787746e360bdbb25307c4d1f88cff83ce9c

https://github.com/microsoft/UVAtlas/commit/b7cb787e8892f8c8922a171f7aafc8fee1bd54b5 https://github.com/microsoft/UVAtlas/commit/5912b86d2ad0c93f84d4a1bf4c5e393be31577fa