OLD | NEW |
1 // Test clang changes for NaCl Support including: | 1 // Test clang changes for NaCl Support including: |
2 // include paths, library paths, emulation, default static | 2 // include paths, library paths, emulation, default static |
3 // | 3 // |
4 // RUN: %clang -### -o %t.o %s 2>&1 \ | 4 // RUN: %clang -### -o %t.o %s 2>&1 \ |
5 // RUN: -target i686-unknown-nacl \ | 5 // RUN: -target i686-unknown-nacl \ |
6 // RUN: | FileCheck --check-prefix=CHECK-I686 %s | 6 // RUN: | FileCheck --check-prefix=CHECK-I686 %s |
7 // CHECK-I686: {{.*}}clang{{.*}}" "-cc1" | 7 // CHECK-I686: {{.*}}clang{{.*}}" "-cc1" |
8 // CHECK-I686: "-fuse-init-array" | 8 // CHECK-I686: "-fuse-init-array" |
9 // CHECK-I686: "-target-cpu" "pentium4" | 9 // CHECK-I686: "-target-cpu" "pentium4" |
10 // CHECK-I686: "-resource-dir" "{{.*}}/lib/clang/[[VER:[0-9.]+]]" | 10 // CHECK-I686: "-resource-dir" "{{.*}}/lib/clang/[[VER:[0-9.]+]]" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // CHECK-ARM: "-static" | 58 // CHECK-ARM: "-static" |
59 // CHECK-ARM: "-L{{.*}}/../arm-nacl/lib" | 59 // CHECK-ARM: "-L{{.*}}/../arm-nacl/lib" |
60 // CHECK-ARM: "-L{{.*}}/../arm-nacl/usr/lib" | 60 // CHECK-ARM: "-L{{.*}}/../arm-nacl/usr/lib" |
61 // CHECK-ARM: "-L{{.*}}/../lib/clang/[[VER]]/lib/arm-nacl" | 61 // CHECK-ARM: "-L{{.*}}/../lib/clang/[[VER]]/lib/arm-nacl" |
62 | 62 |
63 // Check that even when the target arch is just "arm" (as will be the case when | 63 // Check that even when the target arch is just "arm" (as will be the case when |
64 // it is inferred from the binary name) that we get the right ABI flags | 64 // it is inferred from the binary name) that we get the right ABI flags |
65 // RUN: %clang -### -o %t.o %s 2>&1 \ | 65 // RUN: %clang -### -o %t.o %s 2>&1 \ |
66 // RUN: -target arm-nacl \ | 66 // RUN: -target arm-nacl \ |
67 // RUN: | FileCheck --check-prefix=CHECK-ARM-NOV7 %s | 67 // RUN: | FileCheck --check-prefix=CHECK-ARM-NOV7 %s |
68 // CHECK-ARM-NOV7: "-triple" "armv7--nacl" | 68 // CHECK-ARM-NOV7: "-triple" "armv7--nacl-gnueabihf" |
69 // CHECK-ARM-NOV7: "-target-abi" "aapcs-linux" | 69 // CHECK-ARM-NOV7: "-target-abi" "aapcs-linux" |
70 // CHECK-ARM-NOV7: "-mfloat-abi" "hard" | 70 // CHECK-ARM-NOV7: "-mfloat-abi" "hard" |
71 | 71 |
72 // Check C++ include directories | 72 // Check C++ include directories |
73 | 73 |
74 // RUN: %clang -x c++ -### -o %t.o %s 2>&1 \ | 74 // RUN: %clang -x c++ -### -o %t.o %s 2>&1 \ |
75 // RUN: -target armv7a-unknown-nacl-gnueabihf \ | 75 // RUN: -target armv7a-unknown-nacl-gnueabihf \ |
76 // RUN: | FileCheck --check-prefix=CHECK-ARM-CXX %s | 76 // RUN: | FileCheck --check-prefix=CHECK-ARM-CXX %s |
77 // CHECK-ARM-CXX: {{.*}}clang{{.*}}" "-cc1" | 77 // CHECK-ARM-CXX: {{.*}}clang{{.*}}" "-cc1" |
78 // CHECK-ARM-CXX: "-resource-dir" "{{.*}}/lib/clang/[[VER:[0-9.]+]]" | 78 // CHECK-ARM-CXX: "-resource-dir" "{{.*}}/lib/clang/[[VER:[0-9.]+]]" |
(...skipping 18 matching lines...) Expand all Loading... |
97 // RUN: %clang -x c++ -### -o %t.o %s 2>&1 \ | 97 // RUN: %clang -x c++ -### -o %t.o %s 2>&1 \ |
98 // RUN: -target x86_64-unknown-nacl \ | 98 // RUN: -target x86_64-unknown-nacl \ |
99 // RUN: | FileCheck --check-prefix=CHECK-x86_64-CXX %s | 99 // RUN: | FileCheck --check-prefix=CHECK-x86_64-CXX %s |
100 // CHECK-x86_64-CXX: {{.*}}clang{{.*}}" "-cc1" | 100 // CHECK-x86_64-CXX: {{.*}}clang{{.*}}" "-cc1" |
101 // CHECK-x86_64-CXX: "-resource-dir" "{{.*}}/lib/clang/[[VER:[0-9.]+]]" | 101 // CHECK-x86_64-CXX: "-resource-dir" "{{.*}}/lib/clang/[[VER:[0-9.]+]]" |
102 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}/../x86_64-nacl/include/c++/v1" | 102 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}/../x86_64-nacl/include/c++/v1" |
103 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}/../lib/clang/[[VER]]/include" | 103 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}/../lib/clang/[[VER]]/include" |
104 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}/../x86_64-nacl/include" | 104 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}/../x86_64-nacl/include" |
105 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}/../x86_64-nacl/usr/include" | 105 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}/../x86_64-nacl/usr/include" |
106 // CHECK-x86_64-CXX: "-lpthread" | 106 // CHECK-x86_64-CXX: "-lpthread" |
OLD | NEW |