* added clang system headers to data folder of Sourcetrail repo * added clang system header search directory to detected directories on windows * updated migration to add clang system header search directory on windows * updated windows installer and portable package to include compiler headers * updated linux package * cleaned code of path detectors * unrelated removal of unnecessary code in LicenseChecker and UpdateChecker
31 lines
684 B
C++
31 lines
684 B
C++
#include "utility/utilityCxx.h"
|
|
|
|
#include "utility/ResourcePaths.h"
|
|
#include "utility/utilityApp.h"
|
|
|
|
namespace utility
|
|
{
|
|
std::vector<FilePath> replaceOrAddCxxCompilerHeaderPath(const std::vector<FilePath>& headerSearchPaths)
|
|
{
|
|
std::vector<FilePath> newHeaderSearchPaths;
|
|
|
|
if (utility::getOsType() == OS_WINDOWS)
|
|
{
|
|
newHeaderSearchPaths = headerSearchPaths;
|
|
}
|
|
else
|
|
{
|
|
for (const FilePath& path : headerSearchPaths)
|
|
{
|
|
if (!path.getConcatenated(L"/stdarg.h").exists())
|
|
{
|
|
newHeaderSearchPaths.push_back(path);
|
|
}
|
|
}
|
|
}
|
|
|
|
newHeaderSearchPaths.push_back(ResourcePaths::getCxxCompilerHeaderPath().getCanonical());
|
|
return newHeaderSearchPaths;
|
|
}
|
|
}
|