forked from qt-creator/qt-creator
ProjectExplorer: Whitelist -Bprefix for header path search
Fixes: QTCREATORBUG-21424 Change-Id: I36b1e91c86714a9c1b54a6c5a6fe1b24de7878f7 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -544,7 +544,8 @@ QStringList GccToolChain::gccPrepareArguments(const QStringList &flags,
|
||||
allFlags << platformCodeGenFlags << flags;
|
||||
for (int i = 0; i < allFlags.size(); ++i) {
|
||||
const QString &flag = allFlags.at(i);
|
||||
if (flag.startsWith("-stdlib=") || flag.startsWith("--gcctoolchain=")) {
|
||||
if (flag.startsWith("-stdlib=") || flag.startsWith("--gcctoolchain=")
|
||||
|| flag.startsWith("-B")) {
|
||||
arguments << flag;
|
||||
} else if (!hasKitSysroot) {
|
||||
// pass build system's sysroot to compiler, if we didn't pass one from kit
|
||||
|
Reference in New Issue
Block a user