File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 70
70
// RUN: %FileCheck -check-prefix SIMPLE %s < %t.simple-macosx10.10.txt
71
71
72
72
// RUN: %empty-directory(%t)
73
- // RUN: touch %t/a.o
73
+ // RUN: echo "int dummy;" >%t/a.cpp
74
+ // RUN: cc -c %t/a.cpp -o %t/a.o
74
75
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-macosx10.9 %s %t/a.o -o linker 2>&1 | %FileCheck -check-prefix COMPILE_AND_LINK %s
75
- // RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-macosx10.9 %s %t/a.o -driver-filelist-threshold=0 -o linker 2>&1 | %FileCheck -check-prefix FILELIST %s
76
+ // RUN: %swiftc_driver -save-temps -driver-print-jobs -target x86_64-apple-macosx10.9 %s %t/a.o -driver-filelist-threshold=0 -o linker 2>&1 | tee %t/forFilelistCapture | %FileCheck -check-prefix FILELIST %s
77
+
78
+ // Extract filelist name and check it out
79
+ // RUN: tail -1 %t/forFilelistCapture | sed 's/.*-filelist //' | sed 's/ .*//' >%t/filelistName
80
+ // RUN: %FileCheck -check-prefix FILELIST-CONTENTS %s < `cat %t/filelistName`
76
81
77
82
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-macosx10.9 -emit-library %s -module-name LINKER | %FileCheck -check-prefix INFERRED_NAME_DARWIN %s
78
83
// RUN: %swiftc_driver -driver-print-jobs -target x86_64-unknown-linux-gnu -emit-library %s -module-name LINKER | %FileCheck -check-prefix INFERRED_NAME_LINUX %s
346
351
// FILELIST-NOT: .o{{"? }}
347
352
// FILELIST: -filelist {{"?[^-]}}
348
353
// FILELIST-NOT: .o{{"? }}
349
- // FILELIST: /a.o{{"? }}
350
- // FILELIST-NOT: .o{{"? }}
351
354
// FILELIST: -o linker
352
355
356
+ // FILELIST-CONTENTS: /linker-{{.*}}.o
357
+ // FILELIST-CONTENTS: /a.o
353
358
354
359
// INFERRED_NAME_DARWIN: bin{{/|\\\\}}swift{{c?(\.EXE)?}}
355
360
// INFERRED_NAME_DARWIN: -module-name LINKER
You can’t perform that action at this time.
0 commit comments