blob: 87ac6d754ee6d50a5c7fc64070efe713186b60fa [file] [log] [blame]
Daniel Dunbar9d5600a2010-08-10 17:39:05 +00001// RUN: %clang -ccc-clang-archs "" -ccc-host-triple powerpc64-pc-freebsd8 %s -### 2> %t
2// RUN: FileCheck --check-prefix=CHECK-PPC < %t %s
3//
4// CHECK-PPC: clang{{.*}}" "-cc1" "-triple" "powerpc64-pc-freebsd8"
Roman Divacky80f0ab72011-01-30 08:12:24 +00005// CHECK-PPC: ld{{.*}}" "--eh-frame-hdr" "-dynamic-linker" "{{.*}}ld-elf{{.*}}" "-o" "a.out" "{{.*}}crt1.o" "{{.*}}crti.o" "{{.*}}crtbegin.o" "-L/usr/lib" "{{.*}}.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "{{.*}}crtend.o" "{{.*}}crtn.o"
Daniel Dunbar5f865672009-05-04 00:31:11 +00006
Daniel Dunbar9d5600a2010-08-10 17:39:05 +00007
8// Check that -m32 properly adjusts the toolchain flags.
9//
10// RUN: %clang -ccc-host-triple x86_64-pc-freebsd8 -m32 -### %s 2> %t
11// RUN: FileCheck --check-prefix=CHECK-LIB32 < %t %s
12//
13// CHECK-LIB32: clang{{.*}}" "-cc1" "-triple" "i386-pc-freebsd8"
Daniel Dunbar9d5600a2010-08-10 17:39:05 +000014// CHECK-LIB32: ld{{.*}}" {{.*}} "-m" "elf_i386_fbsd"
15//
16// RUN: %clang -ccc-host-triple x86_64-pc-freebsd8 -m32 -print-search-dirs %s > %t
17// RUN: FileCheck --check-prefix=CHECK-LIB32PATHS < %t %s
18//
Benjamin Kramer76a6d502011-01-28 18:28:30 +000019// CHECK-LIB32PATHS: libraries: ={{.*:?}}/usr/lib32