diff options
-rw-r--r-- | tools/libclang/CIndex.cpp | 2 | ||||
-rw-r--r-- | tools/libclang/Indexing.cpp | 2 |
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; } |