Use /guard:cf during both compile and link parts of the build on Windows

Thanks jack-teng1 for info.
This commit is contained in:
Tomas Rycl 2018-05-28 14:56:19 +02:00 committed by Samuel Attard
parent 81398c1fde
commit 40bf582c81

View file

@ -251,7 +251,7 @@
# perform FPO regardless, so we must explicitly disable.
# We still want the false setting above to avoid having
# "/Oy /Oy-" and warnings about overriding.
'AdditionalOptions': ['/Oy-', '/d2guard4'],
'AdditionalOptions': ['/Oy-', '/guard:cf'],
},
'VCLibrarianTool': {
'LinkTimeCodeGeneration': 'true', # /LTCG