Author: yrnkrn Date: Fri Jul 10 13:42:13 2015 New Revision: 241929 URL: http://llvm.org/viewvc/llvm-project?rev=241929&view=rev Log: 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. Modified: cfe/trunk/include/clang/Driver/Options.td Modified: cfe/trunk/include/clang/Driver/Options.td URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=241929&r1=241928&r2=241929&view=diff ============================================================================== --- cfe/trunk/include/clang/Driver/Options.td (original) +++ cfe/trunk/include/clang/Driver/Options.td Fri Jul 10 13:42:13 2015 @@ -1541,6 +1541,7 @@ def private__bundle : Flag<["-"], "priva def pthreads : Flag<["-"], "pthreads">; def pthread : Flag<["-"], "pthread">, Flags<[CC1Option]>, HelpText<"Support POSIX threads in generated code">; +def no_pthread : Flag<["-"], "no-pthread">, Flags<[CC1Option]>; def p : Flag<["-"], "p">; def pie : Flag<["-"], "pie">; def read__only__relocs : Separate<["-"], "read_only_relocs">; _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
