Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: test/Driver/nacl-direct.c

Issue 838933004: Inject gnueabihf environment into the effective clang triple for NaCl (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-clang.git@master
Patch Set: review Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/Driver/Tools.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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"
OLDNEW
« no previous file with comments | « lib/Driver/Tools.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698