mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[metadata prespecialization] Only Apple or linux.
Temporarily disable metadata prespecialization on platforms other than MacOS, iOS, tvOS, watchOS, or Linux. At the moment, tests are failing on Windows with linker errors such as demangleToMetadata-558ea9.o : error LNK2001: unresolved external symbol $ss5Int64VN demangleToMetadata-558ea9.o : error LNK2001: unresolved external symbol $sSSSHsWP Once the issue leading to those linker errors has been resolved, the feature will be enabled on Windows.
This commit is contained in:
@@ -1340,7 +1340,8 @@ bool IRGenModule::shouldPrespecializeGenericMetadata() {
|
||||
AvailabilityContext::forDeploymentTarget(context);
|
||||
return IRGen.Opts.PrespecializeGenericMetadata &&
|
||||
deploymentAvailability.isContainedIn(
|
||||
context.getPrespecializedGenericMetadataAvailability());
|
||||
context.getPrespecializedGenericMetadataAvailability()) &&
|
||||
(Triple.isOSDarwin() || Triple.isTvOS() || Triple.isOSLinux());
|
||||
}
|
||||
|
||||
void IRGenerator::addGenModule(SourceFile *SF, IRGenModule *IGM) {
|
||||
|
||||
Reference in New Issue
Block a user