summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/test/misc_bugs
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2016-05-23 17:50:32 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2016-05-23 17:50:32 +0000
commit1ab887d40324a2c2181d0ae02ce6717ad5f2577c (patch)
tree22b202a0964d2ad68e2c49e0b4475e685dcb1b36 /openmp/runtime/test/misc_bugs
parent6c8f20d73dd8db4f3338c1976bd94d2e54abb7ed (diff)
downloadbcm5719-llvm-1ab887d40324a2c2181d0ae02ce6717ad5f2577c.tar.gz
bcm5719-llvm-1ab887d40324a2c2181d0ae02ce6717ad5f2577c.zip
Allow unit testing on Windows
These changes allow testing on Windows using clang.exe. There are two main changes: 1. Only link to -lm when it actually exists on the system 2. Create basic versions of pthread_create() and pthread_join() for windows. They are not POSIX compliant by any stretch but will allow any existing and future tests to use pthread_create() and pthread_join() for testing interactions of libomp with os threads. Differential Revision: http://reviews.llvm.org/D20391 llvm-svn: 270464
Diffstat (limited to 'openmp/runtime/test/misc_bugs')
-rw-r--r--openmp/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/openmp/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c b/openmp/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c
index e175ff99e35..a8400e4541b 100644
--- a/openmp/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c
+++ b/openmp/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c
@@ -1,6 +1,5 @@
// RUN: %libomp-compile-and-run
#include <stdio.h>
-#include <pthread.h>
#include "omp_testsuite.h"
#define NUM_THREADS 10
OpenPOWER on IntegriCloud