From 4ae20cf38bc05b961da7566f618b574e218b32de Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 3 Feb 2018 15:37:30 +0100 Subject: [PATCH] Clean the CLI flags passed to clang by default --- generator/codefactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/codefactory.cpp b/generator/codefactory.cpp index bbaef09..177ef16 100644 --- a/generator/codefactory.cpp +++ b/generator/codefactory.cpp @@ -45,7 +45,7 @@ CodeFactory::~CodeFactory() std::vector CodeFactory::makeClangArgs() const { static const initializer_list 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 clangArgs; clangArgs.reserve(flags.size() + m_clangOptions.size() + m_sourceFiles.size()); clangArgs.insert(clangArgs.end(), flags.begin(), flags.end());