Teresa Johnson | bbd10b4 | 2016-05-17 14:45:30 +0000 | [diff] [blame] | 1 | ; Check that changing the output path via prefix-replace works |
Teresa Johnson | 1e7d4ab | 2016-05-17 15:26:13 +0000 | [diff] [blame^] | 2 | ; Use of '/' in paths created here make this unsuitable for Windows. |
| 3 | ; XFAIL: win32 |
Teresa Johnson | bbd10b4 | 2016-05-17 14:45:30 +0000 | [diff] [blame] | 4 | ; RUN: mkdir -p %T/oldpath |
| 5 | ; RUN: opt -module-summary %s -o %T/oldpath/prefix_replace.o |
| 6 | ; Ensure that there is no existing file at the new path, so we properly |
| 7 | ; test the creation of the new file there. |
| 8 | ; RUN: rm -f %T/newpath/prefix_replace.o.thinlto.bc |
| 9 | |
| 10 | ; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %T/oldpath/prefix_replace.o |
| 11 | ; RUN: llvm-lto -thinlto-action=distributedindexes -thinlto-prefix-replace="%T/oldpath/:%T/newpath/" -thinlto-index %t.index.bc %T/oldpath/prefix_replace.o |
| 12 | |
| 13 | ; RUN: ls %T/newpath/prefix_replace.o.thinlto.bc |
| 14 | |
| 15 | define void @f() { |
| 16 | entry: |
| 17 | ret void |
| 18 | } |