File tree Expand file tree Collapse file tree 2 files changed +28
-6
lines changed Expand file tree Collapse file tree 2 files changed +28
-6
lines changed Original file line number Diff line number Diff line change @@ -359,15 +359,15 @@ static void computeSwiftModuleTraceInfo(
359
359
// FIXME: The behavior of fs::exists for relative paths is undocumented.
360
360
// Use something else instead?
361
361
if (fs::exists (moduleAdjacentInterfacePath)) {
362
- err << " Found swiftinterface at\n " << moduleAdjacentInterfacePath
363
- << " \n but it was not recorded\n " ;
364
- errorUnexpectedPath (err);
362
+ // This should be an error but it is not because of funkiness around
363
+ // compatible modules such as us having both armv7s.swiftinterface
364
+ // and armv7.swiftinterface in the dependency tracker.
365
+ continue ;
365
366
}
366
367
buffer.clear ();
367
368
368
- err << " Don't know how to handle the dependency at:\n " << depPath
369
- << " \n for module trace emission.\n " ;
370
- errorUnexpectedPath (err);
369
+ // We might land here when we have a arm.swiftmodule in the cache path
370
+ // which added a dependency on a arm.swiftinterface (which was not loaded).
371
371
}
372
372
373
373
// Almost a re-implementation of reversePathSortedFilenames :(.
Original file line number Diff line number Diff line change
1
+ // UNSUPPORTED: -windows-msvc
2
+
3
+ // RUN: %empty-directory(%t)
4
+ // RUN: mkdir -p %t/Mods/Foo.swiftmodule
5
+ // RUN: mkdir -p %t/Mods/Bar.swiftmodule
6
+
7
+ // RUN: %target-swift-frontend %s -DFoo -emit-module -o %t/Mods/Foo.swiftmodule/armv7s-apple-ios.swiftmodule -emit-module-interface-path %t/Mods/Foo.swiftmodule/armv7s-apple-ios.swiftinterface -target armv7s-apple-ios10 -module-name Foo -enable-library-evolution -parse-stdlib
8
+ // RUN: %target-swift-frontend %s -DFoo -emit-module -o %t/Mods/Foo.swiftmodule/arm.swiftmodule -emit-module-interface-path %t/Mods/Foo.swiftmodule/arm.swiftinterface -target arm-apple-ios10 -module-name Foo -enable-library-evolution -parse-stdlib
9
+ // RUN: %target-swift-frontend %s -DBar -typecheck -emit-module-interface-path %t/Mods/Bar.swiftmodule/arm.swiftinterface -I %t/Mods -target arm-apple-ios10 -module-name Bar -enable-library-evolution -parse-stdlib
10
+ // RUN: %target-swift-frontend %s -DFooBar -typecheck -emit-loaded-module-trace-path - -I %t/Mods -target armv7s-apple-ios10 -parse-stdlib
11
+
12
+ #if Foo
13
+ #endif
14
+
15
+ #if Bar
16
+ import Foo
17
+ #endif
18
+
19
+ #if FooBar
20
+ import Foo
21
+ import Bar
22
+ #endif
You can’t perform that action at this time.
0 commit comments