forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.9'
Conflicts: src/plugins/qbsprojectmanager/qbsrunconfiguration.cpp Change-Id: I473084232ab99c18e2316154656de0035af02628
This commit is contained in:
@@ -869,6 +869,16 @@ static void getExpandedCompilerFlags(QStringList &cFlags, QStringList &cxxFlags,
|
||||
cFlags << "-std=c99";
|
||||
else if (!cLanguageVersion.isEmpty())
|
||||
cFlags << ("-std=" + cLanguageVersion.first());
|
||||
|
||||
if (targetOS.contains("darwin")) {
|
||||
const auto darwinVersion = getCppProp("minimumDarwinVersion").toString();
|
||||
if (!darwinVersion.isEmpty()) {
|
||||
const auto darwinVersionFlag = getCppProp("minimumDarwinVersionCompilerFlag")
|
||||
.toString();
|
||||
if (!darwinVersionFlag.isEmpty())
|
||||
cxxFlags << (darwinVersionFlag + '=' + darwinVersion);
|
||||
}
|
||||
}
|
||||
} else if (toolchain.contains("msvc")) {
|
||||
if (enableExceptions.toBool()) {
|
||||
const QString exceptionModel = getCppProp("exceptionHandlingModel").toString();
|
||||
|
||||
@@ -26,9 +26,11 @@
|
||||
#include "qbsrunconfiguration.h"
|
||||
|
||||
#include "qbsnodes.h"
|
||||
#include "qbspmlogging.h"
|
||||
#include "qbsprojectmanagerconstants.h"
|
||||
#include "qbsproject.h"
|
||||
|
||||
#include <projectexplorer/buildmanager.h>
|
||||
#include <projectexplorer/deploymentdata.h>
|
||||
#include <projectexplorer/localenvironmentaspect.h>
|
||||
#include <projectexplorer/project.h>
|
||||
@@ -64,8 +66,13 @@ QbsRunConfiguration::QbsRunConfiguration(Target *target, Core::Id id)
|
||||
return;
|
||||
}
|
||||
BuildTargetInfo bti = buildTargetInfo();
|
||||
if (bti.runEnvModifier)
|
||||
if (bti.runEnvModifier) {
|
||||
if (project()->isParsing() || BuildManager::isBuilding(this->target())) {
|
||||
qCDebug(qbsPmLog) << "qbs project in flux, cannot modify environment";
|
||||
return; // Intentionally skips the cache update below.
|
||||
}
|
||||
bti.runEnvModifier(env, usingLibraryPaths);
|
||||
}
|
||||
m_envCache.insert(key, env);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user