20 lines · plain
1; Check that changing the output path via thinlto-prefix-replace works2; RUN: mkdir -p %t/oldpath3; RUN: opt -module-summary %s -o %t/oldpath/thinlto_prefix_replace.o4; Ensure that there is no existing file at the new path, so we properly5; test the creation of the new file there.6; RUN: rm -f %t/newpath/thinlto_prefix_replace.o.thinlto.bc7; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \8; RUN: --plugin-opt=thinlto \9; RUN: --plugin-opt=thinlto-index-only \10; RUN: --plugin-opt=thinlto-prefix-replace="%t/oldpath/;%t/newpath/" \11; RUN: -shared %t/oldpath/thinlto_prefix_replace.o -o %t/thinlto_prefix_replace12; RUN: ls %t/newpath/thinlto_prefix_replace.o.thinlto.bc13 14target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"15 16define void @f() {17entry:18 ret void19}20