aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-10-29 19:32:39 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-10-29 19:32:39 +0000
commite7de9b4a1f4a15620ab15bc8159018df7d54080a (patch)
tree1ea1b4a711bb21e4328b81f34bf4860f7044ce54
parent51f4708c00110940ca3f337961915f2ca1668375 (diff)
Use LIBCLANG_NOTHREADS instead of CINDEXTEST_NOTHREADS inside libclang,
so the c-index-test one can be enabled without affecting libclang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143288 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/libclang/CIndex.cpp2
-rw-r--r--tools/libclang/Indexing.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp
index 8f0c225d63..61faf77c9c 100644
--- a/tools/libclang/CIndex.cpp
+++ b/tools/libclang/CIndex.cpp
@@ -2719,7 +2719,7 @@ int clang_reparseTranslationUnit(CXTranslationUnit TU,
ReparseTranslationUnitInfo RTUI = { TU, num_unsaved_files, unsaved_files,
options, 0 };
- if (getenv("CINDEXTEST_NOTHREADS")) {
+ if (getenv("LIBCLANG_NOTHREADS")) {
clang_reparseTranslationUnit_Impl(&RTUI);
return RTUI.result;
}
diff --git a/tools/libclang/Indexing.cpp b/tools/libclang/Indexing.cpp
index d05995ce0d..7f296ae1d1 100644
--- a/tools/libclang/Indexing.cpp
+++ b/tools/libclang/Indexing.cpp
@@ -407,7 +407,7 @@ int clang_indexTranslationUnit(CXIndex CIdx,
num_command_line_args, unsaved_files,
num_unsaved_files, out_TU, TU_options, 0 };
- if (getenv("CINDEXTEST_NOTHREADS")) {
+ if (getenv("LIBCLANG_NOTHREADS")) {
clang_indexTranslationUnit_Impl(&ITUI);
return ITUI.result;
}