mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
f17f759d9f
Since Xcode 13, ld64 requires linking libSystem for all the executable. Fix the tests that needs to run ld64 by linking libSystem from sysroot. rdar://77332728 Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D104332
17 lines
571 B
LLVM
17 lines
571 B
LLVM
; RUN: llvm-as %s -o %t.o
|
|
; RUN: %ld64 -lto_library %llvmshlibdir/libLTO.dylib -arch x86_64 -dylib -mllvm -stats -o %t.dylib %t.o -lSystem 2>&1 | FileCheck --check-prefix=STATS %s
|
|
; RUN: %ld64 -lto_library %llvmshlibdir/libLTO.dylib -arch x86_64 -dylib -o %t.dylib %t.o -lSystem 2>&1 | FileCheck --check-prefix=NO_STATS %s
|
|
; REQUIRES: asserts
|
|
|
|
target triple = "x86_64-apple-macosx10.8.0"
|
|
|
|
define i32 @test(i32 %a) {
|
|
%r = add i32 %a, 1
|
|
%r.1 = add i32 1, %a
|
|
%r.2 = add i32 %r, %r.1
|
|
ret i32 %r.2
|
|
}
|
|
|
|
; STATS: Statistics Collected
|
|
; NO_STATS-NOT: Statistics Collected
|