forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/12.0'
Conflicts: src/plugins/cppeditor/cppfilesettingspage.cpp src/plugins/haskell/haskellplugin.h Change-Id: I880693c2e4986853b7aa600a5b7d6c09ad14634e
This commit is contained in:
@@ -233,7 +233,7 @@ CMakeBuildStep::CMakeBuildStep(BuildStepList *bsl, Id id) :
|
||||
stagingDir.setExpectedKind(PathChooser::Kind::Directory);
|
||||
|
||||
Kit *kit = buildConfiguration()->kit();
|
||||
if (CMakeBuildConfiguration::isIos(kit)) {
|
||||
if (CMakeBuildConfiguration::isIos(kit) && CMakeGeneratorKitAspect::generator(kit) == "Xcode") {
|
||||
useiOSAutomaticProvisioningUpdates.setDefaultValue(true);
|
||||
useiOSAutomaticProvisioningUpdates.setSettingsKey(
|
||||
IOS_AUTOMATIC_PROVISIONG_UPDATES_ARGUMENTS_KEY);
|
||||
|
||||
@@ -215,10 +215,17 @@ void CMakeBuildSystem::requestDebugging()
|
||||
bool CMakeBuildSystem::supportsAction(Node *context, ProjectAction action, const Node *node) const
|
||||
{
|
||||
const auto cmakeTarget = dynamic_cast<CMakeTargetNode *>(context);
|
||||
if (cmakeTarget && cmakeTarget->productType() != ProductType::Other)
|
||||
return action == ProjectAction::AddNewFile || action == ProjectAction::AddExistingFile
|
||||
|| action == ProjectAction::AddExistingDirectory || action == ProjectAction::Rename
|
||||
|| action == ProjectAction::RemoveFile;
|
||||
if (cmakeTarget) {
|
||||
const auto buildTarget = Utils::findOrDefault(m_buildTargets,
|
||||
[cmakeTarget](const CMakeBuildTarget &bt) {
|
||||
return bt.title
|
||||
== cmakeTarget->buildKey();
|
||||
});
|
||||
if (buildTarget.targetType != UtilityType)
|
||||
return action == ProjectAction::AddNewFile || action == ProjectAction::AddExistingFile
|
||||
|| action == ProjectAction::AddExistingDirectory
|
||||
|| action == ProjectAction::Rename || action == ProjectAction::RemoveFile;
|
||||
}
|
||||
|
||||
return BuildSystem::supportsAction(context, action, node);
|
||||
}
|
||||
|
||||
@@ -788,7 +788,7 @@ void CMakeGeneratorKitAspectFactory::fix(Kit *k)
|
||||
dv.fromVariant(defaultValue(k));
|
||||
setGeneratorInfo(k, dv);
|
||||
} else {
|
||||
const GeneratorInfo dv(isIos(k) ? QString("Xcode") : info.generator,
|
||||
const GeneratorInfo dv(info.generator,
|
||||
it->supportsPlatform ? info.platform : QString(),
|
||||
it->supportsToolset ? info.toolset : QString());
|
||||
setGeneratorInfo(k, dv);
|
||||
|
||||
@@ -182,8 +182,7 @@ static QVector<FolderNode::LocationInfo> extractBacktraceInformation(
|
||||
|
||||
const size_t fileIndex = static_cast<size_t>(btNode.file);
|
||||
QTC_ASSERT(fileIndex < backtraces.files.size(), break);
|
||||
const FilePath path = sourceDir.pathAppended(backtraces.files[fileIndex]).absoluteFilePath();
|
||||
|
||||
const FilePath path = sourceDir.resolvePath(backtraces.files[fileIndex]);
|
||||
if (btNode.command < 0) {
|
||||
// No command, skip: The file itself is already covered:-)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user