diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-03 04:54:28 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-03 04:54:28 +0000 |
commit | 5345c391c65d1780a0d7b0102b7f735cc3f82732 (patch) | |
tree | 51073efac657a89346d2de7a80d7c49493a58142 /include/clang/Basic/LangOptions.h | |
parent | 4d861516e5bdceb391a9aeb1e6eb6851593031df (diff) |
Add basic support for -pthread.
- Patch by David Chisnall, with PCH and Darwin support mixed in.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/LangOptions.h')
-rw-r--r-- | include/clang/Basic/LangOptions.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h index f162f2eace..da702a8ab3 100644 --- a/include/clang/Basic/LangOptions.h +++ b/include/clang/Basic/LangOptions.h @@ -54,6 +54,8 @@ public: unsigned ThreadsafeStatics : 1; // Whether static initializers are protected // by locks. + unsigned POSIXThreads : 1; // Compiling with POSIX thread support + // (-pthread) unsigned Blocks : 1; // block extension to C unsigned EmitAllDecls : 1; // Emit all declarations, even if // they are unused. @@ -135,6 +137,7 @@ public: // FIXME: The default should be 1. ThreadsafeStatics = 0; + POSIXThreads = 0; Blocks = 0; EmitAllDecls = 0; MathErrno = 1; |