You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Emit a remark when rebuilding the standard library interface
Although users should usually use a prebuilt standard library, in those rare configurations where one needs to be built, the compiler appears to hang for several minutes, even on a trivial compilation. This commit adds a remark that's emitted when this happens, explaining that the standard library is being rebuilt and it will take a few minutes.
// Our test directory only contains interfaces for x86_64-apple-macos.
11
+
// REQUIRES: CPU=x86_64
12
+
// REQUIRES: OS=macosx
13
+
14
+
#if OTHER_IMPORT
15
+
import OtherModule
16
+
#endif
17
+
18
+
func fn(_:Int){}
19
+
20
+
// SLOW-DIAG: remark: did not find a prebuilt standard library for target '{{.*}}' compatible with this Swift compiler; building it may take a few minutes, but it should only happen once for this combination of compiler and target
21
+
22
+
// NORMAL-DIAG-DAG: remark: rebuilding module 'Swift' from interface '{{.*}}'
23
+
// NORMAL-DIAG-DAG: remark: rebuilding module '_Concurrency' from interface '{{.*}}'
24
+
25
+
// Used even when one of the above ones is also used, since the diagnostics should only be emitted once
26
+
// ALL-NOT: remark: did not find a prebuilt standard library
27
+
// ALL-NOT: remark: rebuilding module '{{Swift|_Concurrency}}' from interface '{{.*}}'
0 commit comments