mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #39998 from compnerd/async-inheritance
IRGen: initial pass to support `async` inheritance on Windows
This commit is contained in:
@@ -1876,6 +1876,11 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
// witness.
|
||||
Opts.LazyInitializeProtocolConformances = Triple.isOSBinFormatCOFF();
|
||||
|
||||
// PE/COFF cannot deal with the cross-module reference to the
|
||||
// AsyncFunctionPointer data block. Force the use of indirect
|
||||
// AsyncFunctionPointer access.
|
||||
Opts.IndirectAsyncFunctionPointer = Triple.isOSBinFormatCOFF();
|
||||
|
||||
if (Args.hasArg(OPT_disable_legacy_type_info)) {
|
||||
Opts.DisableLegacyTypeInfo = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user