forked from qt-creator/qt-creator
ProjectExplorer: Do not remove "-Xclang" from command line
... when retrieving built-in header paths. Fixes: QTCREATORBUG-22136 Change-Id: I2e403392b14b4cdea89fc33eb503fff303618d71 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -442,6 +442,8 @@ static QStringList filteredFlags(const QStringList &allFlags, bool considerSysro
|
|||||||
} else if (a == "-arch") {
|
} else if (a == "-arch") {
|
||||||
if (++i < allFlags.length() && !filtered.contains(a))
|
if (++i < allFlags.length() && !filtered.contains(a))
|
||||||
filtered << a << allFlags.at(i);
|
filtered << a << allFlags.at(i);
|
||||||
|
} else if (a == "-Xclang") {
|
||||||
|
filtered << a;
|
||||||
} else if ((considerSysroot && (a == "--sysroot" || a == "-isysroot"))
|
} else if ((considerSysroot && (a == "--sysroot" || a == "-isysroot"))
|
||||||
|| a == "-D" || a == "-U"
|
|| a == "-D" || a == "-U"
|
||||||
|| a == "-gcc-toolchain" || a == "-target" || a == "-mllvm" || a == "-isystem") {
|
|| a == "-gcc-toolchain" || a == "-target" || a == "-mllvm" || a == "-isystem") {
|
||||||
|
Reference in New Issue
Block a user