mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When generating a compiler invocation in driver::createCompilerInvocation() we end up using filelists if the number of inputs is > 128 (to work around command line arg limits). We never actually write them out though, and so fail when parsing the frontend arguments that reference them. As this function is called frequently by SourceKit and command line limits aren't a concern here, this patch makes the 128 threshold value configurable via a new -driver-filelist-threshold option. This is set to its maximum value in driver::createCompilerInvocation() to ensure filelists aren't used. This new option makes the existing -driver-use-filelists (that forces filelists to be used) redundant as it's now equivalent to -driver-filelist-threshold=0. Resolves rdar://problem/38231888
6 lines
166 B
Swift
6 lines
166 B
Swift
let x = 10
|
|
x.
|
|
|
|
// RUN: %sourcekitd-test -req=complete -pos=2:3 %s -- -driver-filelist-threshold=0 %s | %FileCheck %s -check-prefix=COMPLETE
|
|
// COMPLETE: littleEndian
|