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" |
| 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 Dunbar | 5f86567 | 2009-05-04 00:31:11 +0000 | [diff] [blame] | 7 | |
Daniel Dunbar | 9d5600a | 2010-08-10 17:39:05 +0000 | [diff] [blame] | 8 | |
| 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 |