File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,10 @@ auxName(StringRef ModuleName,
87
87
if (InputName.empty ()) {
88
88
InputName = " all" ;
89
89
}
90
+ // Dispose of path prefix, which might make composite name too long.
91
+ InputName = path::filename (InputName);
90
92
if (OptType.empty ()) {
91
- InputName = " Onone" ;
93
+ OptType = " Onone" ;
92
94
}
93
95
if (!OutputType.empty () && OutputType.front () == ' .' ) {
94
96
OutputType = OutputType.substr (1 );
Original file line number Diff line number Diff line change
1
+ // REQUIRES: OS=macosx
2
+ // RUN: rm -rf %t && mkdir -p %t
3
+ // RUN: mkdir -p %t/very-long-directory-name-that-contains-over-128-characters-which-is-not-enough-to-be-illegal-on-its-own-but-presents
4
+ // RUN: cp %s %t/very-long-directory-name-that-contains-over-128-characters-which-is-not-enough-to-be-illegal-on-its-own-but-presents/a-problem-when-combined-with-other-long-path-elements-and-filenames-to-exceed-256-characters-combined-because-yay-arbitrary-limits-amirite.swift
5
+ // RUN: touch %t/main.swift
6
+ // RUN: %target-swiftc_driver -o %t/main -module-name main -stats-output-dir %t %t/main.swift %t/very-long-directory-name-that-contains-over-128-characters-which-is-not-enough-to-be-illegal-on-its-own-but-presents/a-problem-when-combined-with-other-long-path-elements-and-filenames-to-exceed-256-characters-combined-because-yay-arbitrary-limits-amirite.swift
7
+ // RUN: %utils/process-stats-dir.py --set-csv-baseline %t/frontend.csv %t
8
+ // RUN: %FileCheck -input-file %t/frontend.csv %s
9
+
10
+ // CHECK: {{"AST.NumSourceLines" [1-9][0-9]*$}}
11
+ // CHECK: {{"IRModule.NumIRFunctions" [1-9][0-9]*$}}
12
+ // CHECK: {{"LLVM.NumLLVMBytesOutput" [1-9][0-9]*$}}
13
+
14
+ public func foo( ) {
15
+ print ( " hello " )
16
+ }
You can’t perform that action at this time.
0 commit comments