[lld] d32b875 - [ELF][test] Fix build break after 20bdd3e23263
Nemanja Ivanovic via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 16 03:58:45 PST 2022
Author: Nemanja Ivanovic
Date: 2022-02-16T05:56:25-06:00
New Revision: d32b875dbc2400baf896f4b6eb12377273d6c3bc
URL: https://github.com/llvm/llvm-project/commit/d32b875dbc2400baf896f4b6eb12377273d6c3bc
DIFF: https://github.com/llvm/llvm-project/commit/d32b875dbc2400baf896f4b6eb12377273d6c3bc.diff
LOG: [ELF][test] Fix build break after 20bdd3e23263
The added run lines build a bitcode file for x86 and an object file
for whatever the default target is that is running the test. This
causes an incompatibility between the files.
Add the triple to the llvm-mc invocation.
Added:
Modified:
lld/test/ELF/lto/duplicated.ll
Removed:
################################################################################
diff --git a/lld/test/ELF/lto/duplicated.ll b/lld/test/ELF/lto/duplicated.ll
index 8dae81d1249fa..e0e05b1fe498a 100644
--- a/lld/test/ELF/lto/duplicated.ll
+++ b/lld/test/ELF/lto/duplicated.ll
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: rm -rf %t && split-file %s %t
; RUN: llvm-as %t/a.ll -o %t/a.bc
-; RUN: llvm-mc -filetype=obj %t/b.s -o %t/b.o
+; RUN: llvm-mc --triple=x86_64-unknown-linux-gnu -filetype=obj %t/b.s -o %t/b.o
; RUN: not ld.lld %t/a.bc %t/a.bc -o /dev/null -shared 2>&1 | FileCheck %s
;; --thinlto-index-only skips some passes. Test the error is present.
More information about the llvm-commits
mailing list