Clean the CLI flags passed to clang by default

This commit is contained in:
Martchus 2018-02-03 15:37:30 +01:00
parent 8eb9e9ec27
commit 4ae20cf38b
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ CodeFactory::~CodeFactory()
std::vector<string> CodeFactory::makeClangArgs() const
{
static const initializer_list<const char *> flags
= { m_applicationPath, "-x", "c++", "-fPIE", "-fPIC", "-Wno-microsoft", "-Wno-pragma-once-outside-header", "-std=c++14", "-fsyntax-only" };
= { m_applicationPath, "-x", "c++", "-Wno-pragma-once-outside-header", "-std=c++14", "-fsyntax-only" };
vector<string> clangArgs;
clangArgs.reserve(flags.size() + m_clangOptions.size() + m_sourceFiles.size());
clangArgs.insert(clangArgs.end(), flags.begin(), flags.end());