The instructions to confirm the stack pointer position led to poorly
optimized code and abysmal performance. This made the debug configuration
basically useless.
This fix is based on
randomascii.wordpress.com/2011/07/22/visual-c-debug-buildsfast-checks-cause-5x-slowdowns/
As the vcproj format is poorly documented, we previously couldn't find an option to pass compiler/librarian/linker dependencies without manually adding them in the menu. After installing VC9, I found an option that is correctly ported to vcxproj (the new format since VC10) and allows to specify these additional dependencies.
I finally managed to solve the linker warning spam about missing debug
information for liblua. Apparently the file MSVC was looking for was
overwritten by the one for wesnoth wich has the same name. This sets
an individual directory to write it to as it's already done for
wesnothlib. Also, this finally enables me to debug deep down into the
lua upstream source. :)
Also some other mostly warning related adjustments and fixes.