Summary: As mentioned in https://reviews.llvm.org/D81326#2093931, I'm not sure it makes sense to use the default target triple to determine -arch. Long-term we should probably detect it from the input object files, but in the meantime it would be nice not to have to add it to all our tests by using a convenient default. Reviewers: #lld-macho Subscribers: arphaman, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D81983
12 lines
300 B
ArmAsm
12 lines
300 B
ArmAsm
# REQUIRES: x86
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-darwin %s -o %t.o
|
|
# RUN: lld -flavor darwinnew -o %t %t.o
|
|
# RUN: not lld -flavor darwinnew -o /dev/null %t 2>&1 | FileCheck %s -DFILE=%t
|
|
# CHECK: error: [[FILE]]: unhandled file type
|
|
|
|
.text
|
|
.global _main
|
|
_main:
|
|
mov $0, %rax
|
|
ret
|