ClangStaticAnalyzer: Remove -fPIC workaround

The option -fPIC predefines the macros __pic__ and __PIC__ and it was
added just to have these macros and thus avoid a parse error somewhere
in qglobal.h.

Nowadays we get these macros from the project/toolchain, so remove this
workaround.

Change-Id: Ib6106cf217f7d8a08da6f7dde435bcadd04b6ba8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Nikolai Kosjar
2017-03-15 15:43:58 +01:00
parent 3d6b108971
commit 96010fb8d3

View File

@@ -189,9 +189,6 @@ public:
optionsBuilder.addPrecompiledHeaderOptions(pchUsage); optionsBuilder.addPrecompiledHeaderOptions(pchUsage);
optionsBuilder.addMsvcCompatibilityVersion(); optionsBuilder.addMsvcCompatibilityVersion();
if (type != ProjectExplorer::Constants::MSVC_TOOLCHAIN_TYPEID)
optionsBuilder.add(QLatin1String("-fPIC")); // TODO: Remove?
return optionsBuilder.options(); return optionsBuilder.options();
} }