Some lit tests that call llvm-ar use the 'r' flag. If the target archive already exists and is in a corrupt state, this can cause the test to fail. We have added 'rm -f' calls before the llvm-ar calls to increase the robustness of the tests. Differential revision: https://reviews.llvm.org/D49184 llvm-svn: 338705
11 lines
295 B
ArmAsm
11 lines
295 B
ArmAsm
// REQUIRES: x86
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
// RUN: rm -f %t.a
|
|
// RUN: llvm-ar rcs %t.a %t.o
|
|
// RUN: not ld.lld -o /dev/null -u _start %t.a 2>&1 | FileCheck %s
|
|
|
|
// CHECK: target emulation unknown: -m or at least one .o file required
|
|
|
|
.global _start
|
|
_start:
|