2016-05-17 22:45:30 +08:00
|
|
|
; Check that changing the output path via prefix-replace works
|
2016-05-17 23:26:13 +08:00
|
|
|
; Use of '/' in paths created here make this unsuitable for Windows.
|
2016-05-17 22:45:30 +08:00
|
|
|
; RUN: mkdir -p %T/oldpath
|
|
|
|
; RUN: opt -module-summary %s -o %T/oldpath/prefix_replace.o
|
|
|
|
; Ensure that there is no existing file at the new path, so we properly
|
|
|
|
; test the creation of the new file there.
|
|
|
|
; RUN: rm -f %T/newpath/prefix_replace.o.thinlto.bc
|
|
|
|
|
|
|
|
; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %T/oldpath/prefix_replace.o
|
2016-05-18 02:43:22 +08:00
|
|
|
; RUN: llvm-lto -thinlto-action=distributedindexes -thinlto-prefix-replace="%T/oldpath/;%T/newpath/" -thinlto-index %t.index.bc %T/oldpath/prefix_replace.o
|
2016-05-17 22:45:30 +08:00
|
|
|
|
|
|
|
; RUN: ls %T/newpath/prefix_replace.o.thinlto.bc
|
|
|
|
|
|
|
|
define void @f() {
|
|
|
|
entry:
|
|
|
|
ret void
|
|
|
|
}
|