mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #37211 from compnerd/windows-static-linking
IRGen: support static linking on Windows
This commit is contained in:
@@ -131,6 +131,9 @@ static bool readOptionsBlock(llvm::BitstreamCursor &cursor,
|
||||
options_block::IsSIBLayout::readRecord(scratch, IsSIB);
|
||||
extendedInfo.setIsSIB(IsSIB);
|
||||
break;
|
||||
case options_block::IS_STATIC_LIBRARY:
|
||||
extendedInfo.setIsStaticLibrary(true);
|
||||
break;
|
||||
case options_block::IS_TESTABLE:
|
||||
extendedInfo.setIsTestable(true);
|
||||
break;
|
||||
@@ -1180,6 +1183,7 @@ ModuleFileSharedCore::ModuleFileSharedCore(
|
||||
UserModuleVersion = info.userModuleVersion;
|
||||
Bits.ArePrivateImportsEnabled = extInfo.arePrivateImportsEnabled();
|
||||
Bits.IsSIB = extInfo.isSIB();
|
||||
Bits.IsStaticLibrary = extInfo.isStaticLibrary();
|
||||
Bits.IsTestable = extInfo.isTestable();
|
||||
Bits.ResilienceStrategy = unsigned(extInfo.getResilienceStrategy());
|
||||
Bits.IsImplicitDynamicEnabled = extInfo.isImplicitDynamicEnabled();
|
||||
|
||||
Reference in New Issue
Block a user