Daniel Dunbar | 9d5600a | 2010-08-10 17:39:05 +0000 | [diff] [blame] | 1 | // 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 Divacky | 80f0ab7 | 2011-01-30 08:12:24 +0000 | [diff] [blame] | 5 | // 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 Dunbar | 5f86567 | 2009-05-04 00:31:11 +0000 | [diff] [blame] | 6 | |
Daniel Dunbar | 9d5600a | 2010-08-10 17:39:05 +0000 | [diff] [blame] | 7 | |
| 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 Dunbar | 9d5600a | 2010-08-10 17:39:05 +0000 | [diff] [blame] | 14 | // 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 Kramer | 76a6d50 | 2011-01-28 18:28:30 +0000 | [diff] [blame] | 19 | // CHECK-LIB32PATHS: libraries: ={{.*:?}}/usr/lib32 |