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

@@ -722,6 +722,7 @@ LoadedFile *SerializedModuleLoaderBase::loadAST(
// We've loaded the file. Now try to bring it into the AST.
fileUnit = new (Ctx) SerializedASTFile(M, *loadedModuleFile);
M.setStaticLibrary(loadedModuleFile->isStaticLibrary());
if (loadedModuleFile->isTestable())
M.setTestingEnabled();
if (loadedModuleFile->arePrivateImportsEnabled())