src: Use gnu C and C++ standards as default for C and C++ SourceGroupSettings on Linux platform (issue #748)
This commit is contained in:
@@ -4,7 +4,11 @@
|
||||
|
||||
std::wstring SourceGroupSettingsWithCStandard::getDefaultCStandardStatic()
|
||||
{
|
||||
#ifdef __linux__
|
||||
return L"gnu11"
|
||||
#else
|
||||
return L"c11";
|
||||
#endif
|
||||
}
|
||||
|
||||
std::wstring SourceGroupSettingsWithCStandard::getCStandard() const
|
||||
|
||||
@@ -4,7 +4,11 @@
|
||||
|
||||
std::wstring SourceGroupSettingsWithCppStandard::getDefaultCppStandardStatic()
|
||||
{
|
||||
#ifdef __linux__
|
||||
return L"gnu++17"
|
||||
#else
|
||||
return L"c++17";
|
||||
#endif
|
||||
}
|
||||
|
||||
std::wstring SourceGroupSettingsWithCppStandard::getCppStandard() const
|
||||
|
||||
Reference in New Issue
Block a user