]> granicus.if.org Git - clang/commit
Teach clang that -no-pthread is a valid command line option
authorYaron Keren <yaron.keren@gmail.com>
Fri, 10 Jul 2015 18:42:13 +0000 (18:42 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Fri, 10 Jul 2015 18:42:13 +0000 (18:42 +0000)
commita474e699b6c58689840f549cc88c08a4099b98da
tree848ce92b43433cc0306398a764e518cd015dba3b
parent473abe5237c9e4524ba3160189993f07a1e6bb0d
Teach clang that -no-pthread is a valid command line option

The winpthreads library in mingw-w64 passes -no-pthread when building
since pthreads is not available to build itself and pthreads it is linked
by default. clang does not link to pthreads by default but did error on
unknown -no-pthread option thus stopping the winpthreads build.

http://reviews.llvm.org/D11087

Patch by Martell Malone.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241929 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td