brintos

brintos / llvm-project-archived public Read only

0
0
Text · 778 B · c811762 Raw
19 lines · plain
1; Check that changing the output path via prefix-replace works2; Use of '/' in paths created here make this unsuitable for Windows.3; RUN: mkdir -p %t/oldpath4; RUN: opt -module-summary %s -o %t/oldpath/prefix_replace.o5; Ensure that there is no existing file at the new path, so we properly6; test the creation of the new file there.7; RUN: rm -f %t/newpath/prefix_replace.o.thinlto.bc8 9; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t/oldpath/prefix_replace.o10; RUN: llvm-lto -thinlto-action=distributedindexes -thinlto-prefix-replace="%t/oldpath/;%t/newpath/" -thinlto-index %t.index.bc %t/oldpath/prefix_replace.o11 12; RUN: ls %t/newpath/prefix_replace.o.thinlto.bc13target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"14 15define void @f() {16entry:17  ret void18}19