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

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

Issue 1769303002: Support different file extensions for LLVMgold.so (Closed) Base URL: https://chromium.googlesource.com/a/native_client/pnacl-clang.git@master
Patch Set: Explicitly enumerate possible extensions 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 | « no previous file | 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 PNaCl Support including: 1 // Test clang changes for PNaCl 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 le32-unknown-nacl -resource-dir foo 2>&1 \ 5 // RUN: -target le32-unknown-nacl -resource-dir foo 2>&1 \
6 // RUN: | FileCheck --check-prefix=CHECK-LE32 %s 6 // RUN: | FileCheck --check-prefix=CHECK-LE32 %s
7 // CHECK-LE32: {{.*}}clang{{.*}}" "-cc1" 7 // CHECK-LE32: {{.*}}clang{{.*}}" "-cc1"
8 // CHECK-LE32: "-triple" "le32-unknown-nacl" 8 // CHECK-LE32: "-triple" "le32-unknown-nacl"
9 // CHECK-LE32: "-emit-llvm-bc" 9 // CHECK-LE32: "-emit-llvm-bc"
10 // CHECK-LE32: "-fuse-init-array" 10 // CHECK-LE32: "-fuse-init-array"
(...skipping 12 matching lines...) Expand all
23 // CHECK-LE32: "--allow-unresolved=longjmp" 23 // CHECK-LE32: "--allow-unresolved=longjmp"
24 // CHECK-LE32: "--allow-unresolved=__nacl_tp_tls_offset" 24 // CHECK-LE32: "--allow-unresolved=__nacl_tp_tls_offset"
25 // CHECK-LE32: "--allow-unresolved=__nacl_tp_tdb_offset" 25 // CHECK-LE32: "--allow-unresolved=__nacl_tp_tdb_offset"
26 // CHECK-LE32: "crt1.x" 26 // CHECK-LE32: "crt1.x"
27 // CHECK-LE32: "crti.bc" 27 // CHECK-LE32: "crti.bc"
28 // CHECK-LE32: "crtbegin.bc" 28 // CHECK-LE32: "crtbegin.bc"
29 // CHECK-LE32: "unwind_stubs.bc" 29 // CHECK-LE32: "unwind_stubs.bc"
30 // CHECK-LE32: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}le32-nacl{{/|\\\\}}lib" 30 // CHECK-LE32: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}le32-nacl{{/|\\\\}}lib"
31 // CHECK-LE32: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}le32-nacl{{/|\\\\}}usr{{/|\\\\}}li b" 31 // CHECK-LE32: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}le32-nacl{{/|\\\\}}usr{{/|\\\\}}li b"
32 // CHECK-LE32: "-Lfoo{{/|\\\\}}lib{{/|\\\\}}le32-nacl" 32 // CHECK-LE32: "-Lfoo{{/|\\\\}}lib{{/|\\\\}}le32-nacl"
33 // CHECK-LE32: "-plugin" "{{.*}}{{/|\\\\}}..{{/|\\\\}}lib{{/|\\\\}}LLVMgold.so" 33 // CHECK-LE32: "-plugin" "{{.*}}{{/|\\\\}}..{{/|\\\\}}lib{{/|\\\\}}LLVMgold{{.so |.dll|.dylib}}"
34 // CHECK-LE32: "-plugin-opt=emit-llvm" 34 // CHECK-LE32: "-plugin-opt=emit-llvm"
35 // CHECK-LE32: "-plugin-opt=mtriple=le32-unknown-nacl" 35 // CHECK-LE32: "-plugin-opt=mtriple=le32-unknown-nacl"
36 // CHECK-LE32-NOT: -lpthread 36 // CHECK-LE32-NOT: -lpthread
37 37
38 // RUN: %clangxx -no-canonical-prefixes -### -o %t.o %s \ 38 // RUN: %clangxx -no-canonical-prefixes -### -o %t.o %s \
39 // RUN: -target le32-unknown-nacl -fexceptions -resource-dir foo 2>&1 \ 39 // RUN: -target le32-unknown-nacl -fexceptions -resource-dir foo 2>&1 \
40 // RUN: | FileCheck --check-prefix=CHECK-LE32-CXX %s 40 // RUN: | FileCheck --check-prefix=CHECK-LE32-CXX %s
41 // CHECK-LE32-CXX: {{.*}}clang{{.*}}" "-cc1" 41 // CHECK-LE32-CXX: {{.*}}clang{{.*}}" "-cc1"
42 // CHECK-LE32-CXX: "-triple" "le32-unknown-nacl" 42 // CHECK-LE32-CXX: "-triple" "le32-unknown-nacl"
43 // CHECK-LE32-CXX: "-emit-llvm-bc" 43 // CHECK-LE32-CXX: "-emit-llvm-bc"
(...skipping 16 matching lines...) Expand all
60 // CHECK-LE32-CXX: "--undefined=__pnacl_eh_stack" 60 // CHECK-LE32-CXX: "--undefined=__pnacl_eh_stack"
61 // CHECK-LE32-CXX: "--undefined=__pnacl_eh_resume" 61 // CHECK-LE32-CXX: "--undefined=__pnacl_eh_resume"
62 // CHECK-LE32-CXX: "--allow-unresolved=__pnacl_eh_type_table" 62 // CHECK-LE32-CXX: "--allow-unresolved=__pnacl_eh_type_table"
63 // CHECK-LE32-CXX: "--allow-unresolved=__pnacl_eh_action_table" 63 // CHECK-LE32-CXX: "--allow-unresolved=__pnacl_eh_action_table"
64 // CHECK-LE32-CXX: "crt1.x" 64 // CHECK-LE32-CXX: "crt1.x"
65 // CHECK-LE32-CXX: "crti.bc" 65 // CHECK-LE32-CXX: "crti.bc"
66 // CHECK-LE32-CXX: "crtbegin.bc" 66 // CHECK-LE32-CXX: "crtbegin.bc"
67 // CHECK-LE32-CXX: "sjlj_eh_redirect.bc" 67 // CHECK-LE32-CXX: "sjlj_eh_redirect.bc"
68 // CHECK-LE32-CXX: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}le32-nacl{{/|\\\\}}lib" 68 // CHECK-LE32-CXX: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}le32-nacl{{/|\\\\}}lib"
69 // CHECK-LE32-CXX: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}le32-nacl{{/|\\\\}}usr{{/|\\\\ }}lib" 69 // CHECK-LE32-CXX: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}le32-nacl{{/|\\\\}}usr{{/|\\\\ }}lib"
70 // CHECK-LE32-CXX: "-plugin" "{{.*}}{{/|\\\\}}..{{/|\\\\}}lib{{/|\\\\}}LLVMgold. so" 70 // CHECK-LE32-CXX: "-plugin" "{{.*}}{{/|\\\\}}..{{/|\\\\}}lib{{/|\\\\}}LLVMgold{ {.so|.dll|.dylib}}"
71 // CHECK-LE32-CXX: "-plugin-opt=emit-llvm" 71 // CHECK-LE32-CXX: "-plugin-opt=emit-llvm"
72 // CHECK-LE32-CXX: "-plugin-opt=mtriple=le32-unknown-nacl" 72 // CHECK-LE32-CXX: "-plugin-opt=mtriple=le32-unknown-nacl"
73 // CHECK-LE32-CXX: "-plugin-opt=-enable-pnacl-sjlj-eh" 73 // CHECK-LE32-CXX: "-plugin-opt=-enable-pnacl-sjlj-eh"
74 // CHECK-LE32-CXX: -lpthread 74 // CHECK-LE32-CXX: -lpthread
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698