Skip to content

Commit

Permalink
Windows: Fix undefined symbols introduced in 0d50cea. clang::LangOpti…
Browse files Browse the repository at this point in the history
…ons::setStackProtector(SSPStrong) requires bufferoverflowu.lib.
  • Loading branch information
marsupial authored and sftnight committed Dec 8, 2016
1 parent 4b6ae92 commit 354b080
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Interpreter/CIFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 354b080

Please sign in to comment.