Merge pull request #37211 from compnerd/windows-static-linking

IRGen: support static linking on Windows
This commit is contained in:
Saleem Abdulrasool
2021-05-05 07:26:36 -07:00
committed by GitHub
17 changed files with 128 additions and 7 deletions

View File

@@ -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();