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

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

Issue 1547623002: Clang toolchain driver for PNaCl (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-clang.git@master
Patch Set: Review feedback addressed Created 4 years, 9 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 | « test/Driver/le32-unknown-nacl.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
(Empty)
1 // Test clang changes for PNaCl Support including:
2 // include paths, library paths, emulation, default static
3
4 // RUN: %clang -no-canonical-prefixes -### -o %t.o %s \
5 // RUN: -target le32-unknown-nacl -resource-dir foo 2>&1 \
6 // RUN: | FileCheck --check-prefix=CHECK-LE32 %s
7 // CHECK-LE32: {{.*}}clang{{.*}}" "-cc1"
8 // CHECK-LE32: "-triple" "le32-unknown-nacl"
9 // CHECK-LE32: "-emit-llvm-bc"
10 // CHECK-LE32: "-fuse-init-array"
11 // CHECK-LE32: "-fno-gnu-inline-asm"
12 // CHECK-LE32: "-resource-dir" "foo"
13 // CHECK-LE32: "-internal-isystem" "foo{{/|\\\\}}include"
14 // CHECK-LE32: "-internal-externc-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}le32-nac l{{/|\\\\}}include"
15 // CHECK-LE32: "-internal-externc-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}le32-nac l{{/|\\\\}}usr{{/|\\\\}}include"
16 // CHECK-LE32: le32-nacl-ld.gold{{(.exe)?}}"
17 // CHECK-LE32: "-static"
18 // CHECK-LE32: "--undef-sym-check"
19 // CHECK-LE32: "--allow-unresolved=memcpy"
20 // CHECK-LE32: "--allow-unresolved=memset"
21 // CHECK-LE32: "--allow-unresolved=memmove"
22 // CHECK-LE32: "--allow-unresolved=setjmp"
23 // CHECK-LE32: "--allow-unresolved=longjmp"
24 // CHECK-LE32: "--allow-unresolved=__nacl_tp_tls_offset"
25 // CHECK-LE32: "--allow-unresolved=__nacl_tp_tdb_offset"
26 // CHECK-LE32: "crt1.x"
27 // CHECK-LE32: "crti.bc"
28 // CHECK-LE32: "crtbegin.bc"
29 // CHECK-LE32: "unwind_stubs.bc"
30 // CHECK-LE32: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}le32-nacl{{/|\\\\}}lib"
31 // CHECK-LE32: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}le32-nacl{{/|\\\\}}usr{{/|\\\\}}li b"
32 // CHECK-LE32: "-Lfoo{{/|\\\\}}lib{{/|\\\\}}le32-nacl"
33 // CHECK-LE32: "-plugin" "{{.*}}{{/|\\\\}}..{{/|\\\\}}lib{{/|\\\\}}LLVMgold.so"
34 // CHECK-LE32: "-plugin-opt=emit-llvm"
35 // CHECK-LE32: "-plugin-opt=mtriple=le32-unknown-nacl"
36 // CHECK-LE32-NOT: -lpthread
37
38 // RUN: %clangxx -no-canonical-prefixes -### -o %t.o %s \
39 // RUN: -target le32-unknown-nacl -fexceptions -resource-dir foo 2>&1 \
40 // RUN: | FileCheck --check-prefix=CHECK-LE32-CXX %s
41 // CHECK-LE32-CXX: {{.*}}clang{{.*}}" "-cc1"
42 // CHECK-LE32-CXX: "-triple" "le32-unknown-nacl"
43 // CHECK-LE32-CXX: "-emit-llvm-bc"
44 // CHECK-LE32-CXX: "-fuse-init-array"
45 // CHECK-LE32-CXX: "-fno-gnu-inline-asm"
46 // CHECK-LE32-CXX: "-resource-dir" "foo"
47 // CHECK-LE32-CXX: "-internal-isystem" "foo{{/|\\\\}}include"
48 // CHECK-LE32-CXX: "-internal-externc-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}le32 -nacl{{/|\\\\}}include"
49 // CHECK-LE32-CXX: "-internal-externc-isystem" "{{.*}}{{/|\\\\}}..{{/|\\\\}}le32 -nacl{{/|\\\\}}usr{{/|\\\\}}include"
50 // CHECK-LE32-CXX: le32-nacl-ld.gold{{(.exe)?}}"
51 // CHECK-LE32-CXX: "-static"
52 // CHECK-LE32-CXX: "--undef-sym-check"
53 // CHECK-LE32-CXX: "--allow-unresolved=memcpy"
54 // CHECK-LE32-CXX: "--allow-unresolved=memset"
55 // CHECK-LE32-CXX: "--allow-unresolved=memmove"
56 // CHECK-LE32-CXX: "--allow-unresolved=setjmp"
57 // CHECK-LE32-CXX: "--allow-unresolved=longjmp"
58 // CHECK-LE32-CXX: "--allow-unresolved=__nacl_tp_tls_offset"
59 // CHECK-LE32-CXX: "--allow-unresolved=__nacl_tp_tdb_offset"
60 // CHECK-LE32-CXX: "--undefined=__pnacl_eh_stack"
61 // CHECK-LE32-CXX: "--undefined=__pnacl_eh_resume"
62 // CHECK-LE32-CXX: "--allow-unresolved=__pnacl_eh_type_table"
63 // CHECK-LE32-CXX: "--allow-unresolved=__pnacl_eh_action_table"
64 // CHECK-LE32-CXX: "crt1.x"
65 // CHECK-LE32-CXX: "crti.bc"
66 // CHECK-LE32-CXX: "crtbegin.bc"
67 // CHECK-LE32-CXX: "sjlj_eh_redirect.bc"
68 // CHECK-LE32-CXX: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}le32-nacl{{/|\\\\}}lib"
69 // CHECK-LE32-CXX: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}le32-nacl{{/|\\\\}}usr{{/|\\\\ }}lib"
70 // CHECK-LE32-CXX: "-plugin" "{{.*}}{{/|\\\\}}..{{/|\\\\}}lib{{/|\\\\}}LLVMgold. so"
71 // CHECK-LE32-CXX: "-plugin-opt=emit-llvm"
72 // CHECK-LE32-CXX: "-plugin-opt=mtriple=le32-unknown-nacl"
73 // CHECK-LE32-CXX: "-plugin-opt=-enable-pnacl-sjlj-eh"
74 // CHECK-LE32-CXX: -lpthread
OLDNEW
« no previous file with comments | « test/Driver/le32-unknown-nacl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698