blob: e8bc223457131c7ae0ecab49b599401ae152fbcc [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"
5// CHECK-PPC: as{{.*}}" "-o" "{{.*}}.o" "{{.*}}.s
6// CHECK-PPC: ld{{.*}}" "--eh-frame-hdr" "-dynamic-linker" "{{.*}}ld-elf{{.*}}" "-o" "a.out" "{{.*}}crt1.o" "{{.*}}crti.o" "{{.*}}crtbegin.o" "{{.*}}.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 +00007
Daniel Dunbar9d5600a2010-08-10 17:39:05 +00008
9// Check that -m32 properly adjusts the toolchain flags.
10//
11// RUN: %clang -ccc-host-triple x86_64-pc-freebsd8 -m32 -### %s 2> %t
12// RUN: FileCheck --check-prefix=CHECK-LIB32 < %t %s
13//
14// CHECK-LIB32: clang{{.*}}" "-cc1" "-triple" "i386-pc-freebsd8"
15// CHECK-LIB32: as{{.*}}" "--32"
16// CHECK-LIB32: ld{{.*}}" {{.*}} "-m" "elf_i386_fbsd"
17//
18// RUN: %clang -ccc-host-triple x86_64-pc-freebsd8 -m32 -print-search-dirs %s > %t
19// RUN: FileCheck --check-prefix=CHECK-LIB32PATHS < %t %s
20//
21// CHECK-LIB32PATHS: libraries: ={{.*}}:/usr/lib32