diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2022-06-17 15:40:30 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2022-06-23 07:52:06 +0000 |
commit | fd47b37298827c399bc1e40774aeb0372c1d5735 (patch) | |
tree | 34fa7015286a40b41e2c1c8674c173371caf58c9 /src | |
parent | b77645d1335f966507d895d045bcb23232880655 (diff) | |
download | qt-creator-fd47b37298827c399bc1e40774aeb0372c1d5735.tar.gz |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/projectexplorer/gcctoolchain.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp index 8a3ffe5b53..fa62339215 100644 --- a/src/plugins/projectexplorer/gcctoolchain.cpp +++ b/src/plugins/projectexplorer/gcctoolchain.cpp @@ -442,6 +442,8 @@ static QStringList filteredFlags(const QStringList &allFlags, bool considerSysro } else if (a == "-arch") { if (++i < allFlags.length() && !filtered.contains(a)) filtered << a << allFlags.at(i); + } else if (a == "-Xclang") { + filtered << a; } else if ((considerSysroot && (a == "--sysroot" || a == "-isysroot")) || a == "-D" || a == "-U" || a == "-gcc-toolchain" || a == "-target" || a == "-mllvm" || a == "-isystem") { |