]> git.tdb.fi Git - builder.git/commitdiff
Enable correct __cplusplus macro on MSVC
authorMikko Rasa <tdb@tdb.fi>
Sun, 3 Sep 2023 23:18:31 +0000 (02:18 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 3 Sep 2023 23:18:31 +0000 (02:18 +0300)
plugins/msvc/msvccompiler.cpp

index e7ec3b7bbba2ba8f5afe128c4c54012126ced09b..3206e5785f9bb9a647aae2d5ee6c3efc95b23168 100644 (file)
@@ -114,6 +114,8 @@ ExternalTask::Arguments MsvcCompiler::_run(const ObjectFile &object, FS::Path &w
                        argv.push_back("/std:"+std.str());
        }
 
+       argv.push_back("/Zc:__cplusplus");
+
        if(binfo.warning_level>=1)
        {
                argv.push_back(format("/W%d", binfo.warning_level));