build: ship clang compiler header within Sourcetrail package on macOS and Linux

* replace path to local compiler headers with packaged ones in include path detection
* added app settings migration to replace local compiler header path with path to packaged headers
This commit is contained in:
Eberhard Graether
2018-06-18 14:08:50 +02:00
parent a1c146d439
commit f11be042a6
20 changed files with 121 additions and 22 deletions
+8 -1
View File
@@ -25,8 +25,10 @@ Settings::~Settings()
{
}
bool Settings::load(const FilePath& filePath)
bool Settings::load(const FilePath& filePath, bool readOnly)
{
m_readOnly = readOnly;
if (filePath.exists())
{
m_config = ConfigManager::createAndLoad(TextAccess::createFromFile(filePath));
@@ -44,6 +46,11 @@ bool Settings::load(const FilePath& filePath)
void Settings::save()
{
if (m_readOnly)
{
return;
}
if (m_config.get() && !m_filePath.empty())
{
m_config->save(m_filePath.str());