mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 23:52:41 +00:00
CREATE_PROJECT: Cleanup and turn off exception handling again
This commit is contained in:
parent
89dfd36b60
commit
fbcf667b6a
@ -471,6 +471,8 @@ int main(int argc, char *argv[]) {
|
||||
// 4512 ('class' : assignment operator could not be generated)
|
||||
// some classes use const items and the default assignment operator cannot be generated
|
||||
//
|
||||
// 4577 ('noexcept' used with no exception handling mode specified)
|
||||
//
|
||||
// 4702 (unreachable code)
|
||||
// mostly thrown after error() calls (marked as NORETURN)
|
||||
//
|
||||
@ -513,7 +515,6 @@ int main(int argc, char *argv[]) {
|
||||
globalWarnings.push_back("4127");
|
||||
globalWarnings.push_back("4244");
|
||||
globalWarnings.push_back("4250");
|
||||
globalWarnings.push_back("4267");
|
||||
globalWarnings.push_back("4310");
|
||||
globalWarnings.push_back("4345");
|
||||
globalWarnings.push_back("4351");
|
||||
@ -527,6 +528,11 @@ int main(int argc, char *argv[]) {
|
||||
globalWarnings.push_back("6385");
|
||||
globalWarnings.push_back("6386");
|
||||
|
||||
if (msvcVersion == 14) {
|
||||
globalWarnings.push_back("4267");
|
||||
globalWarnings.push_back("4577");
|
||||
}
|
||||
|
||||
projectWarnings["agi"].push_back("4510");
|
||||
projectWarnings["agi"].push_back("4610");
|
||||
|
||||
|
@ -319,8 +319,7 @@ void MSBuildProvider::outputProjectSettings(std::ofstream &project, const std::s
|
||||
for (StringList::const_iterator i = setup.libraries.begin(); i != setup.libraries.end(); ++i)
|
||||
libraries += *i + ".lib;";
|
||||
|
||||
if (_version == 14)
|
||||
{
|
||||
if (_version == 14) {
|
||||
std::string debug = isRelease ? "" : "d";
|
||||
libraries += "libvcruntime" + debug + ".lib;";
|
||||
libraries += "libucrt" + debug + ".lib;";
|
||||
@ -383,7 +382,7 @@ void MSBuildProvider::outputGlobalPropFile(const BuildSetup &setup, std::ofstrea
|
||||
"\t\t\t<DisableSpecificWarnings>" << warnings << ";%(DisableSpecificWarnings)</DisableSpecificWarnings>\n"
|
||||
"\t\t\t<AdditionalIncludeDirectories>$(" << LIBS_DEFINE << ")\\include;.;" << prefix << ";" << prefix << "\\engines;" << (setup.tests ? prefix + "\\test\\cxxtest;" : "") << "$(TargetDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>\n"
|
||||
"\t\t\t<PreprocessorDefinitions>" << definesList << "%(PreprocessorDefinitions)</PreprocessorDefinitions>\n"
|
||||
"\t\t\t<ExceptionHandling>" << ((setup.devTools || setup.tests || _version == 14) ? "Sync" : "") << "</ExceptionHandling>\n";
|
||||
"\t\t\t<ExceptionHandling>" << ((setup.devTools || setup.tests) ? "Sync" : "") << "</ExceptionHandling>\n";
|
||||
|
||||
#if NEEDS_RTTI
|
||||
properties << "\t\t\t<RuntimeTypeInfo>true</RuntimeTypeInfo>\n";
|
||||
|
Loading…
Reference in New Issue
Block a user