Skip to content

Commit

Permalink
Added pthreads support
Browse files Browse the repository at this point in the history
  • Loading branch information
Teemperor committed Nov 17, 2017
1 parent 250c9d7 commit c657f8e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions files/pthreads.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module pthread [system] { header "pthread.h" export * }
8 changes: 8 additions & 0 deletions tests/compilation/pthreads/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.0)
project (pthreads-test)

find_package(Threads)

include(clang-modules/ClangModules.cmake)

add_executable(pthreads-test main.cpp)
1 change: 1 addition & 0 deletions tests/compilation/pthreads/NEEDS_PCMS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pthreads
4 changes: 4 additions & 0 deletions tests/compilation/pthreads/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include <pthread.h>

int main(int, char**){
}

0 comments on commit c657f8e

Please sign in to comment.