forked from qt-creator/qt-creator
Meson: Fix compile for gcc 5.3
Amends 77d7bb5014
.
Change-Id: I8aca3c3a95890ec794a8f0f5cadbc6d726559f49
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -37,7 +37,7 @@ public:
|
|||||||
{
|
{
|
||||||
return ToolWrapper::findTool({"ninja", "ninja-build"});
|
return ToolWrapper::findTool({"ninja", "ninja-build"});
|
||||||
}
|
}
|
||||||
static inline QString toolName() { return "Ninja"; };
|
static inline QString toolName() { return {"Ninja"}; };
|
||||||
};
|
};
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
|
@@ -42,13 +42,13 @@ inline QString expand(const ProjectExplorer::Kit *kit, const QString ¯o)
|
|||||||
|
|
||||||
inline QString cCompilerPath(const ProjectExplorer::Kit *kit)
|
inline QString cCompilerPath(const ProjectExplorer::Kit *kit)
|
||||||
{
|
{
|
||||||
QTC_ASSERT(kit, return "");
|
QTC_ASSERT(kit, return {});
|
||||||
return details::expand(kit, "%{Compiler:Executable:C}");
|
return details::expand(kit, "%{Compiler:Executable:C}");
|
||||||
}
|
}
|
||||||
|
|
||||||
inline QString cxxCompilerPath(const ProjectExplorer::Kit *kit)
|
inline QString cxxCompilerPath(const ProjectExplorer::Kit *kit)
|
||||||
{
|
{
|
||||||
QTC_ASSERT(kit, return "");
|
QTC_ASSERT(kit, return {});
|
||||||
return details::expand(kit, "%{Compiler:Executable:Cxx}");
|
return details::expand(kit, "%{Compiler:Executable:Cxx}");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@ inline QString cmakePath(const ProjectExplorer::Kit *kit)
|
|||||||
|
|
||||||
inline QString qtVersion(const ProjectExplorer::Kit *kit)
|
inline QString qtVersion(const ProjectExplorer::Kit *kit)
|
||||||
{
|
{
|
||||||
QTC_ASSERT(kit, return "");
|
QTC_ASSERT(kit, return {});
|
||||||
return details::expand(kit, "%{Qt:Version}");
|
return details::expand(kit, "%{Qt:Version}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user