diff options
author | Eric Christopher <echristo@apple.com> | 2012-09-13 06:32:34 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-09-13 06:32:34 +0000 |
commit | 17674ec8c6631c4b5d645ccf3ad1e39b633095c4 (patch) | |
tree | ec5f13f2669d3644c31491c598def089041a4725 /clang/test/Driver/openbsd.c | |
parent | 4a7a5610ce72a632b7d8047f81efe00a3b7e4128 (diff) | |
download | bcm5719-llvm-17674ec8c6631c4b5d645ccf3ad1e39b633095c4.tar.gz bcm5719-llvm-17674ec8c6631c4b5d645ccf3ad1e39b633095c4.zip |
Properly link libpthread_p when using profiling on OpenBSD.
Patch by Brad Smith.
llvm-svn: 163777
Diffstat (limited to 'clang/test/Driver/openbsd.c')
-rw-r--r-- | clang/test/Driver/openbsd.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/clang/test/Driver/openbsd.c b/clang/test/Driver/openbsd.c index 911c452c6c1..93a740420cf 100644 --- a/clang/test/Driver/openbsd.c +++ b/clang/test/Driver/openbsd.c @@ -1,5 +1,9 @@ -// RUN: %clang -no-canonical-prefixes -ccc-clang-archs "" -target i686-pc-openbsd %s -### 2> %t.log -// RUN: FileCheck -input-file %t.log %s +// RUN: %clang -no-canonical-prefixes -ccc-clang-archs "" -target i686-pc-openbsd %s -### 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-LD %s +// CHECK-LD: clang{{.*}}" "-cc1" "-triple" "i686-pc-openbsd" +// CHECK-LD: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-Bdynamic" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "{{.*}}.o" "-lgcc" "-lc" "-lgcc" "{{.*}}crtend.o" -// CHECK: clang{{.*}}" "-cc1" "-triple" "i686-pc-openbsd" -// CHECK: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-Bdynamic" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "{{.*}}.o" "-lgcc" "-lc" "-lgcc" "{{.*}}crtend.o" +// RUN: %clang -no-canonical-prefixes -ccc-clang-archs "" -target i686-pc-openbsd -pg -pthread %s -### 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-PG %s +// CHECK-PG: clang{{.*}}" "-cc1" "-triple" "i686-pc-openbsd" +// CHECK-PG: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-Bdynamic" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "{{.*}}.o" "-lgcc" "-lpthread_p" "-lc_p" "-lgcc" "{{.*}}crtend.o" |