aboutsummaryrefslogblamecommitdiff
path: root/test/Driver/dyld-prefix.c
blob: 5336a1142ea9faf8836c806386375c2a2a5a124b (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                                                    


                                                                                                                            
// REQUIRES: shell-preserves-root

// RUN: touch %t.o

// RUN: %clang -target i386-unknown-linux --dyld-prefix /foo -### %t.o 2>&1 | FileCheck --check-prefix=CHECK-32 %s
// CHECK-32: "-dynamic-linker" "/foo/lib/ld-linux.so.2"

// RUN: %clang -target x86_64-unknown-linux --dyld-prefix /foo -### %t.o 2>&1 | FileCheck --check-prefix=CHECK-64 %s
// CHECK-64: "-dynamic-linker" "/foo/lib64/ld-linux-x86-64.so.2"

// RUN: %clang -target x86_64-unknown-linux-gnux32 --dyld-prefix /foo -### %t.o 2>&1 | FileCheck --check-prefix=CHECK-X32 %s
// CHECK-X32: "-dynamic-linker" "/foo/libx32/ld-linux-x32.so.2"