From: Argyrios Kyrtzidis Date: Sat, 29 Oct 2011 19:32:39 +0000 (+0000) Subject: Use LIBCLANG_NOTHREADS instead of CINDEXTEST_NOTHREADS inside libclang, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7de9b4a1f4a15620ab15bc8159018df7d54080a;p=clang 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 --- 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; }