Skip to content

Commit 82d3df9

Browse files
committed
stdlib: enable prespecialization of generic metadata on Windows
Enable support for pre-speciailization of generic metadata on Windows.
1 parent d8ebecf commit 82d3df9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/IRGenModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,7 @@ bool IRGenModule::useDllStorage() { return ::useDllStorage(Triple); }
17451745

17461746
bool IRGenModule::shouldPrespecializeGenericMetadata() {
17471747
auto canPrespecializeTarget =
1748-
(Triple.isOSDarwin() ||
1748+
(Triple.isOSDarwin() || Triple.isOSWindows() ||
17491749
(Triple.isOSLinux() && !(Triple.isARM() && Triple.isArch32Bit())));
17501750
if (canPrespecializeTarget && isStandardLibrary()) {
17511751
return IRGen.Opts.PrespecializeGenericMetadata;

0 commit comments

Comments
 (0)