diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-05-23 17:50:32 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2016-05-23 17:50:32 +0000 |
commit | 1ab887d40324a2c2181d0ae02ce6717ad5f2577c (patch) | |
tree | 22b202a0964d2ad68e2c49e0b4475e685dcb1b36 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 6c8f20d73dd8db4f3338c1976bd94d2e54abb7ed (diff) | |
download | bcm5719-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 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions