refactor: Clean up build config

This commit is contained in:
Lars Toenning
2024-11-16 12:00:49 +01:00
parent fa4c0bacbf
commit c7779e1461
8 changed files with 33 additions and 115 deletions

View File

@@ -20,7 +20,7 @@ namespace swift::misc
m_wordSize(CBuildConfig::buildWordSize()),
m_exePath(QCoreApplication::applicationDirPath()),
m_version(CBuildConfig::getVersionString()),
m_compileInfo(CBuildConfig::compiledWithInfo()),
m_compileInfo(CBuildConfig::compiledWithInfoShort()),
m_platform(CBuildConfig::getPlatformString()),
m_process(CProcessInfo::currentProcess())
{

View File

@@ -69,7 +69,6 @@ namespace swift::misc
QString CSwiftDirectories::executableFilePath(const QString &executable)
{
Q_ASSERT_X(!executable.isEmpty(), Q_FUNC_INFO, "Missing executable file path");
Q_ASSERT_X(CBuildConfig::isKnownExecutableName(executable), Q_FUNC_INFO, "Unknown exectuable");
QString s = CFileUtils::appendFilePaths(binDirectory(), executable);
if (CBuildConfig::isRunningOnMacOSPlatform())