Windows: Fix undefined symbols introduced in 0d50cea. clang::LangOptions::setStackProtector(SSPStrong) requires bufferoverflowu.lib.

This commit is contained in:
Frederich Munch 2016-11-30 17:37:09 -05:00 committed by sftnight
parent 4b6ae92419
commit 354b080f0f

View File

@ -352,7 +352,9 @@ namespace {
Opts.RTTIData = 0;
Opts.setDefaultCallingConv(clang::LangOptions::DCC_CDecl);
#ifdef _DEBUG
Opts.setStackProtector(clang::LangOptions::SSPStrong);
// FIXME: This requires bufferoverflowu.lib, but adding:
// #pragma comment(lib, "bufferoverflowu.lib") still gives errors!
// Opts.setStackProtector(clang::LangOptions::SSPStrong);
#endif
#else
Opts.Exceptions = 1;