Skip to content

Commit 6049db0

Browse files
[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.
1 parent cf552a1 commit 6049db0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/ThinLTO/X86/cache-emit-asm.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
;; as crashes or sanitizer errors. MCAsmStreamer has specific assumptions about
33
;; the lifetime of the output stream that are easy to overlook (see #138194).
44

5-
; RUN: rm -rf %t.cache
5+
; RUN: rm -rf %t && mkdir -p %t
66
; RUN: opt -module-hash -module-summary -thinlto-bc %s -o %t1.bc
7-
; RUN: ld.lld --thinlto-cache-dir=%t.cache --lto-emit-asm %t1.bc
7+
; RUN: llvm-lto2 run -cache-dir %t/cache --filetype=asm -o %t.o %t1.bc -r=%t1.bc,globalfunc
88

99
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
1010
target triple = "x86_64-unknown-linux-gnu"

0 commit comments

Comments
 (0)