mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
For batch compile jobs, it's helpful to see which files are considered primary and that was the original reason why filelist contents were printed in compiler crash stack dumps. However, for whole module compile jobs, the contents of the filelist is uninteresting (it's just all the files in the module) and can be hundreds or thousands of lines long so it often causes important information to be trimmed from stack dumps received in reproducers.
15 lines
496 B
Swift
15 lines
496 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: echo %s > %t/filelist.txt
|
|
// RUN: not --crash %target-swift-frontend -typecheck -debug-crash-after-parse -filelist %t/filelist.txt 2>&1 | %FileCheck %s
|
|
|
|
// CHECK-LABEL: Stack dump
|
|
// CHECK-NEXT: Program arguments: {{.*swift(-frontend)?(c?)(\.exe)?}}
|
|
// CHECK-NEXT: Swift version
|
|
// CHECK-NEXT: Compiling with effective version
|
|
|
|
// Filelist contents should be omitted since this is a whole-module compile.
|
|
// CHECK-NOT: Contents of
|
|
|
|
func anchor() {}
|
|
anchor()
|