|
|
@@ -4378,12 +4378,20 @@ bool cmGlobalXCodeGenerator::CreateXCodeObjects(
|
|
|
buildSettings->AddAttribute("CODE_SIGNING_ALLOWED",
|
|
|
this->CreateString("NO"));
|
|
|
}
|
|
|
+ auto debugConfigs = this->GetCMakeInstance()->GetDebugConfigs();
|
|
|
+ std::set<std::string> debugConfigSet(debugConfigs.begin(),
|
|
|
+ debugConfigs.end());
|
|
|
|
|
|
for (auto& config : configs) {
|
|
|
CreateGlobalXCConfigSettings(root, config.second, config.first);
|
|
|
|
|
|
cmXCodeObject* buildSettingsForCfg = this->CreateFlatClone(buildSettings);
|
|
|
|
|
|
+ if (debugConfigSet.count(cmSystemTools::UpperCase(config.first)) == 0) {
|
|
|
+ buildSettingsForCfg->AddAttribute("SWIFT_COMPILATION_MODE",
|
|
|
+ this->CreateString("wholemodule"));
|
|
|
+ }
|
|
|
+
|
|
|
// Put this last so it can override existing settings
|
|
|
// Convert "CMAKE_XCODE_ATTRIBUTE_*" variables directly.
|
|
|
for (const auto& var : this->CurrentMakefile->GetDefinitions()) {
|