mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +08:00
Ref T289, minor adjustments
This commit is contained in:
@@ -140,6 +140,7 @@ namespace BlackConfig
|
|||||||
{
|
{
|
||||||
bool isLocalDeveloperBuildImpl()
|
bool isLocalDeveloperBuildImpl()
|
||||||
{
|
{
|
||||||
|
if (!CBuildConfig::isDebugBuild()) { return false; }
|
||||||
const QString p = QCoreApplication::applicationDirPath().toLower();
|
const QString p = QCoreApplication::applicationDirPath().toLower();
|
||||||
|
|
||||||
// guessing, feel free to add path checks
|
// guessing, feel free to add path checks
|
||||||
@@ -151,7 +152,6 @@ namespace BlackConfig
|
|||||||
|
|
||||||
bool CBuildConfig::isLocalDeveloperDebugBuild()
|
bool CBuildConfig::isLocalDeveloperDebugBuild()
|
||||||
{
|
{
|
||||||
if (!CBuildConfig::isDebugBuild()) { return false; }
|
|
||||||
static const bool devBuild = Private::isLocalDeveloperBuildImpl();
|
static const bool devBuild = Private::isLocalDeveloperBuildImpl();
|
||||||
return devBuild;
|
return devBuild;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -154,6 +154,6 @@ namespace BlackConfig
|
|||||||
//! Patch version
|
//! Patch version
|
||||||
static int versionMicro(); // defined in buildconfig_gen.cpp.in
|
static int versionMicro(); // defined in buildconfig_gen.cpp.in
|
||||||
};
|
};
|
||||||
}
|
} // ns
|
||||||
|
|
||||||
#endif // guard
|
#endif // guard
|
||||||
|
|||||||
@@ -29,4 +29,4 @@
|
|||||||
# define BLACKCORE_EXPORT
|
# define BLACKCORE_EXPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // BLACKCORE_MACROS_H
|
#endif // guard
|
||||||
|
|||||||
Reference in New Issue
Block a user