Swift: Add debug flags in Debug configurations
Swift requires -Xlinker -debug
to be explicitly passed to CMAKE_Swift_FLAGS
on Windows when building with CMAKE_BUILD_TYPE=RelWithDebInfo
or the PDB is not emitted. Note that Swift only supports CMAKE_MSVC_DEBUG_INFORMATION_FORMAT=ProgramDatabase
(i.e. PDBs, no ENC/Embedded support). The flags for it are also different -g -debug-info-format=codeview
rather than /Zi
. Following up from !8090 (merged).