File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -254,8 +254,6 @@ bool ide::initCompilerInvocation(
254
254
std::to_string (sessionTimestamp - 1 ));
255
255
ImporterOpts.ExtraArgs .push_back (
256
256
" -fmodules-validate-once-per-build-session" );
257
-
258
- SearchPathOpts.DisableModulesValidateSystemDependencies = true ;
259
257
}
260
258
261
259
// Disable expensive SIL options to reduce time spent in SILGen.
Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: split-file %s %t
3
+ // RUN: %sourcekitd-test -req=diags %t/test.swift -- %t/test.swift -Xcc -fmodule-map-file=%t/module.modulemap -module-cache-path %t/module-cache | %FileCheck %s
4
+ // Sleep for 1 second so that touching the modulemap modifies its timestamp on the second level.
5
+ // RUN: sleep 1
6
+ // RUN: touch %t/module.modulemap
7
+ // RUN: %sourcekitd-test -req=diags %t/test.swift -- %t/test.swift -Xcc -fmodule-map-file=%t/module.modulemap -module-cache-path %t/module-cache | %FileCheck %s
8
+
9
+ // CHECK: 'guard' body must not fall through
10
+
11
+ //--- test.swift
12
+
13
+ import Lib
14
+
15
+ func test( value: Bool ) {
16
+ guard value else {
17
+
18
+ }
19
+ }
20
+
21
+ //--- module.modulemap
22
+
23
+ module Lib [ system] {
24
+ export *
25
+ }
You can’t perform that action at this time.
0 commit comments