aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Karyakin <akaryaki@quicinc.com>2025-05-14 13:15:02 -0500
committerGitHub <noreply@github.com>2025-05-14 13:15:02 -0500
commit6049db08fa5005c9535b22da0e07993395129f29 (patch)
tree6e000a07f5d718a9b545c1a967412a5c941e2bfe
parentcf552a1d82650f9ea4a03e0467d0ca64dbc3e5c4 (diff)
downloadllvm-6049db08fa5005c9535b22da0e07993395129f29.zip
llvm-6049db08fa5005c9535b22da0e07993395129f29.tar.gz
llvm-6049db08fa5005c9535b22da0e07993395129f29.tar.bz2
[LTO] Use llvm-lto2 instead of lld in the test (#139928)
This is a follow-up to #138203. The added test used lld but lld is not always available, which breaks builds. Make the test use llvm-lto2. Also make the test a bit more similar to other tests in the same directory.
-rw-r--r--llvm/test/ThinLTO/X86/cache-emit-asm.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/ThinLTO/X86/cache-emit-asm.ll b/llvm/test/ThinLTO/X86/cache-emit-asm.ll
index ee74840..b6e5ca2 100644
--- a/llvm/test/ThinLTO/X86/cache-emit-asm.ll
+++ b/llvm/test/ThinLTO/X86/cache-emit-asm.ll
@@ -2,9 +2,9 @@
;; as crashes or sanitizer errors. MCAsmStreamer has specific assumptions about
;; the lifetime of the output stream that are easy to overlook (see #138194).
-; RUN: rm -rf %t.cache
+; RUN: rm -rf %t && mkdir -p %t
; RUN: opt -module-hash -module-summary -thinlto-bc %s -o %t1.bc
-; RUN: ld.lld --thinlto-cache-dir=%t.cache --lto-emit-asm %t1.bc
+; RUN: llvm-lto2 run -cache-dir %t/cache --filetype=asm -o %t.o %t1.bc -r=%t1.bc,globalfunc
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"