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

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

Issue 1230653005: Change Native Client x86 usr include and link path to match SDK expectations (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-clang.git@master
Patch Set: Created 5 years, 5 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/ToolChains.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 -no-canonical-prefixes -### -o %t.o %s \ 4 // RUN: %clang -no-canonical-prefixes -### -o %t.o %s \
5 // RUN: -target i686-unknown-nacl -resource-dir foo 2>&1 \ 5 // RUN: -target i686-unknown-nacl -resource-dir foo 2>&1 \
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" "foo" 10 // CHECK-I686: "-resource-dir" "foo"
11 // CHECK-I686: "-internal-isystem" "foo{{/|\\\\}}include" 11 // CHECK-I686: "-internal-isystem" "foo{{/|\\\\}}include"
12 // CHECK-I686: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nacl{{/|\ \\\}}usr{{/|\\\\}}include" 12 // CHECK-I686: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}i686-nacl{{/|\\\ \}}usr{{/|\\\\}}include"
13 // CHECK-I686: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nacl{{/|\ \\\}}include" 13 // CHECK-I686: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nacl{{/|\ \\\}}include"
14 // CHECK-I686: as{{(.exe)?}}" "--32" 14 // CHECK-I686: as{{(.exe)?}}" "--32"
15 // CHECK-I686: ld{{(.exe)?}}" 15 // CHECK-I686: ld{{(.exe)?}}"
16 // CHECK-I686: "--build-id" 16 // CHECK-I686: "--build-id"
17 // CHECK-I686: "-m" "elf_i386_nacl" 17 // CHECK-I686: "-m" "elf_i386_nacl"
18 // CHECK-I686: "-static" 18 // CHECK-I686: "-static"
19 // CHECK-I686: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nacl{{/|\\\\}}lib32" 19 // CHECK-I686: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nacl{{/|\\\\}}lib32"
20 // CHECK-I686: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nacl{{/|\\\\}}usr{{/|\\\\}} lib32" 20 // CHECK-I686: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}i686-nacl{{/|\\\\}}usr{{/|\\\\}}li b"
21 // CHECK-I686: "-Lfoo{{/|\\\\}}lib{{/|\\\\}}i686-nacl" 21 // CHECK-I686: "-Lfoo{{/|\\\\}}lib{{/|\\\\}}i686-nacl"
22 // CHECK-I686-NOT: -lpthread 22 // CHECK-I686-NOT: -lpthread
23 // 23 //
24 // RUN: %clang -no-canonical-prefixes -### -o %t.o %s \ 24 // RUN: %clang -no-canonical-prefixes -### -o %t.o %s \
25 // RUN: -target x86_64-unknown-nacl -resource-dir foo 2>&1 \ 25 // RUN: -target x86_64-unknown-nacl -resource-dir foo 2>&1 \
26 // RUN: | FileCheck --check-prefix=CHECK-x86_64 %s 26 // RUN: | FileCheck --check-prefix=CHECK-x86_64 %s
27 // CHECK-x86_64: {{.*}}clang{{.*}}" "-cc1" 27 // CHECK-x86_64: {{.*}}clang{{.*}}" "-cc1"
28 // CHECK-x86_64: "-fuse-init-array" 28 // CHECK-x86_64: "-fuse-init-array"
29 // CHECK-x86_64: "-target-cpu" "x86-64" 29 // CHECK-x86_64: "-target-cpu" "x86-64"
30 // CHECK-x86_64: "-resource-dir" "foo" 30 // CHECK-x86_64: "-resource-dir" "foo"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // CHECK-ARM-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}arm-nacl{{/|\ \\\}}include" 88 // CHECK-ARM-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}arm-nacl{{/|\ \\\}}include"
89 // CHECK-ARM-CXX: "-lpthread" 89 // CHECK-ARM-CXX: "-lpthread"
90 90
91 // RUN: %clangxx -no-canonical-prefixes -### -o %t.o %s \ 91 // RUN: %clangxx -no-canonical-prefixes -### -o %t.o %s \
92 // RUN: -target i686-unknown-nacl -resource-dir foo 2>&1 \ 92 // RUN: -target i686-unknown-nacl -resource-dir foo 2>&1 \
93 // RUN: | FileCheck --check-prefix=CHECK-I686-CXX %s 93 // RUN: | FileCheck --check-prefix=CHECK-I686-CXX %s
94 // CHECK-I686-CXX: {{.*}}clang{{.*}}" "-cc1" 94 // CHECK-I686-CXX: {{.*}}clang{{.*}}" "-cc1"
95 // CHECK-I686-CXX: "-resource-dir" "foo" 95 // CHECK-I686-CXX: "-resource-dir" "foo"
96 // CHECK-I686-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nacl{ {/|\\\\}}include{{/|\\\\}}c++{{/|\\\\}}v1" 96 // CHECK-I686-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nacl{ {/|\\\\}}include{{/|\\\\}}c++{{/|\\\\}}v1"
97 // CHECK-I686-CXX: "-internal-isystem" "foo{{/|\\\\}}include" 97 // CHECK-I686-CXX: "-internal-isystem" "foo{{/|\\\\}}include"
98 // CHECK-I686-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nacl{ {/|\\\\}}usr{{/|\\\\}}include" 98 // CHECK-I686-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}i686-nacl{{/ |\\\\}}usr{{/|\\\\}}include"
99 // CHECK-I686-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nacl{ {/|\\\\}}include" 99 // CHECK-I686-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nacl{ {/|\\\\}}include"
100 // CHECK-I686-CXX: "-lpthread" 100 // CHECK-I686-CXX: "-lpthread"
101 101
102 // RUN: %clangxx -no-canonical-prefixes -### -o %t.o %s \ 102 // RUN: %clangxx -no-canonical-prefixes -### -o %t.o %s \
103 // RUN: -target x86_64-unknown-nacl -resource-dir foo 2>&1 \ 103 // RUN: -target x86_64-unknown-nacl -resource-dir foo 2>&1 \
104 // RUN: | FileCheck --check-prefix=CHECK-x86_64-CXX %s 104 // RUN: | FileCheck --check-prefix=CHECK-x86_64-CXX %s
105 // CHECK-x86_64-CXX: {{.*}}clang{{.*}}" "-cc1" 105 // CHECK-x86_64-CXX: {{.*}}clang{{.*}}" "-cc1"
106 // CHECK-x86_64-CXX: "-resource-dir" "foo" 106 // CHECK-x86_64-CXX: "-resource-dir" "foo"
107 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nac l{{/|\\\\}}include{{/|\\\\}}c++{{/|\\\\}}v1" 107 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nac l{{/|\\\\}}include{{/|\\\\}}c++{{/|\\\\}}v1"
108 // CHECK-x86_64-CXX: "-internal-isystem" "foo{{/|\\\\}}include" 108 // CHECK-x86_64-CXX: "-internal-isystem" "foo{{/|\\\\}}include"
109 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nac l{{/|\\\\}}usr{{/|\\\\}}include" 109 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nac l{{/|\\\\}}usr{{/|\\\\}}include"
110 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nac l{{/|\\\\}}include" 110 // CHECK-x86_64-CXX: "-internal-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}x86_64-nac l{{/|\\\\}}include"
111 // CHECK-x86_64-CXX: "-lpthread" 111 // CHECK-x86_64-CXX: "-lpthread"
OLDNEW
« no previous file with comments | « lib/Driver/ToolChains.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698