forked from qt-creator/qt-creator
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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user