cpp-best-practices / travels

This is an awesome submission to the C++ Best Practices Game Jam
59 stars 9 forks source link

Fix msvc address sanitizer link #6

Closed StefanVK closed 1 year ago

StefanVK commented 2 years ago

Recently string annotations were added in msvc asan builds.

For [cmake] -- The CXX compiler identification is MSVC 19.34.31721.0

I get error [build] docopt.lib(docopt.obj) : error LNK2038: mismatch detected for 'annotate_string': value '0' doesn't match value '1' in main.cpp.obj [...] [build] src\travels.exe : fatal error LNK1319: 44 mismatches detected

We can simply disable the string annotations just like the vector annotations