Skip to content

Commit a3aa7aa

Browse files
committed
---
yaml --- r: 346035 b: refs/heads/master c: 5528db1 h: refs/heads/master i: 346033: df7b2f9 346031: c5b24db
1 parent b494b6c commit a3aa7aa

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 618f3a64b95aa5ef319b2297a9fd42c976cc057e
2+
refs/heads/master: 5528db14629d2aa376fdfdfbc8aeb6dd6ac9cf12
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/lib/Frontend/ParseableInterfaceSupport.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,12 @@ static bool buildSwiftModuleFromSwiftInterface(
344344
}
345345

346346
LLVM_DEBUG(llvm::dbgs() << "Serializing " << OutPath << "\n");
347+
FrontendOptions &FEOpts = SubInvocation.getFrontendOptions();
347348
SerializationOptions SerializationOpts;
348349
std::string OutPathStr = OutPath;
349350
SerializationOpts.OutputPath = OutPathStr.c_str();
350351
SerializationOpts.SerializeAllSIL = true;
352+
SerializationOpts.ModuleLinkName = FEOpts.ModuleLinkName;
351353
SmallVector<FileDependency, 16> Deps;
352354
if (collectDepsForSerialization(FS, SubInstance, InPath, ModuleCachePath,
353355
Deps, Diags, OuterTracker)) {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
public struct TestStruct {
2+
public init() {}
3+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// RUN: %empty-directory(%t)
2+
3+
// RUN: %target-build-swift -emit-library -module-name TestModule -module-link-name coreTestModuleKitUtilsTool %S/Inputs/TestModule.swift -emit-parseable-module-interface -o %t/libcoreTestModuleKitUtilsTool.%target-dylib-extension
4+
// RUN: %target-swift-frontend -emit-ir -I %t -L %t -enable-parseable-module-interface %s | %FileCheck %s
5+
6+
import TestModule
7+
8+
_ = TestStruct()
9+
10+
// CHECK: -lcoreTestModuleKitUtilsTool

0 commit comments

Comments
 (0)