test: repair lld builder
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 9 Jun 2020 02:22:02 +0000 (19:22 -0700)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 9 Jun 2020 03:13:54 +0000 (20:13 -0700)
Add the explicit `-arch x86_64` to the invocation.

lld/test/MachO/invalid/stub-link.s
lld/test/MachO/stub-link.s

index f1c1590..7f88103 100644 (file)
@@ -3,7 +3,7 @@
 # RUN: mkdir -p %t
 #
 # RUN: llvm-mc -filetype obj -triple x86_64-apple-ios %s -o %t/test.o
-# RUN: not lld -flavor darwinnew -o %t/test -Z -L%S/../Inputs/iPhoneSimulator.sdk/usr/lib -lSystem %t/test.o 2>&1 | FileCheck %s
+# RUN: not lld -flavor darwinnew -arch x86_64 -o %t/test -Z -L%S/../Inputs/iPhoneSimulator.sdk/usr/lib -lSystem %t/test.o 2>&1 | FileCheck %s
 
 # CHECK: error: undefined symbol __cache_handle_memory_pressure_event
 
index 1bf65c4..65bd642 100644 (file)
@@ -3,7 +3,7 @@
 # RUN: mkdir -p %t
 #
 # RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %s -o %t/test.o
-# RUN: lld -flavor darwinnew -o %t/test -Z -L%S/Inputs/MacOSX.sdk/usr/lib -lSystem %t/test.o
+# RUN: lld -flavor darwinnew -arch x86_64 -o %t/test -Z -L%S/Inputs/MacOSX.sdk/usr/lib -lSystem %t/test.o
 #
 # RUN: llvm-objdump --bind --no-show-raw-insn -d -r %t/test | FileCheck %s