mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-03 05:08:47 -06:00
Merge topic 'swift-exe-exports'
1e26d57188 Ninja: properly handle exports from Swift exes
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4314
This commit is contained in:
@@ -551,16 +551,23 @@ std::vector<std::string> cmNinjaNormalTargetGenerator::ComputeLinkCmd(
|
||||
linkCmds.push_back(cmakeCommand + " -E touch $TARGET_FILE");
|
||||
}
|
||||
#endif
|
||||
return linkCmds;
|
||||
}
|
||||
} break;
|
||||
case cmStateEnums::SHARED_LIBRARY:
|
||||
case cmStateEnums::MODULE_LIBRARY:
|
||||
break;
|
||||
case cmStateEnums::EXECUTABLE:
|
||||
if (this->TargetLinkLanguage(config) == "Swift") {
|
||||
if (this->GeneratorTarget->IsExecutableWithExports()) {
|
||||
const std::string flags =
|
||||
this->Makefile->GetSafeDefinition("CMAKE_EXE_EXPORTS_Swift_FLAG");
|
||||
cmExpandList(flags, linkCmds);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
assert(false && "Unexpected target type");
|
||||
}
|
||||
return std::vector<std::string>();
|
||||
return linkCmds;
|
||||
}
|
||||
|
||||
void cmNinjaNormalTargetGenerator::WriteDeviceLinkStatement(
|
||||
|
||||
Reference in New Issue
Block a user