Chandler Carruth | c4cc403 | 2011-10-01 00:37:39 +0000 | [diff] [blame] | 1 | // General tests that ld invocations on Linux targets sane. |
| 2 | // |
| 3 | // RUN: %clang -no-canonical-prefixes -ccc-host-triple i386-unknown-linux %s -### -o %t.o 2>&1 \ |
| 4 | // RUN: | FileCheck --check-prefix=CHECK-LD-32 %s |
Chandler Carruth | f3a852a | 2011-10-01 01:26:40 +0000 | [diff] [blame] | 5 | // 32-bit machines may use 'lib' or 'lib32' dependending on how they setup multilib. |
Chandler Carruth | 37cbb0b | 2011-10-01 01:46:47 +0000 | [diff] [blame^] | 6 | // CHECK-LD-32: "{{.*}}ld" {{.*}} "-L/lib/../lib{{(32)?}}" "-L/usr/lib/../lib{{(32)?}}" |
Chandler Carruth | c4cc403 | 2011-10-01 00:37:39 +0000 | [diff] [blame] | 7 | // |
| 8 | // RUN: %clang -no-canonical-prefixes -ccc-host-triple x86_64-unknown-linux %s -### -o %t.o 2>&1 \ |
| 9 | // RUN: | FileCheck --check-prefix=CHECK-LD-64 %s |
Chandler Carruth | f3a852a | 2011-10-01 01:26:40 +0000 | [diff] [blame] | 10 | // FIXME: Should we allow 'lib' instead of 'lib64' here? |
Chandler Carruth | 29bbe2b | 2011-10-01 01:03:45 +0000 | [diff] [blame] | 11 | // CHECK-LD-64: "{{.*}}ld" {{.*}} "-L/lib/../lib64" "-L/usr/lib/../lib64" |