diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-07-10 03:10:43 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-07-10 03:10:43 +0000 |
commit | 3310effb24d90feae761b61271d1c8d7ad47cca0 (patch) | |
tree | 488bc354103bb81b3e2e0f9bc59222d3d9172a95 /clang/tools/c-arcmt-test/c-arcmt-test.c | |
parent | 9b07c0ab6b05ce5f2bab4025d1d6814e3accb30b (diff) | |
download | bcm5719-llvm-3310effb24d90feae761b61271d1c8d7ad47cca0.tar.gz bcm5719-llvm-3310effb24d90feae761b61271d1c8d7ad47cca0.zip |
c-arcmt-test.c: MSVCRT does not have setenv. Use putenv instead.
llvm-svn: 134859
Diffstat (limited to 'clang/tools/c-arcmt-test/c-arcmt-test.c')
-rw-r--r-- | clang/tools/c-arcmt-test/c-arcmt-test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/tools/c-arcmt-test/c-arcmt-test.c b/clang/tools/c-arcmt-test/c-arcmt-test.c index 86992da76b1..19f6b8f30cd 100644 --- a/clang/tools/c-arcmt-test/c-arcmt-test.c +++ b/clang/tools/c-arcmt-test/c-arcmt-test.c @@ -70,7 +70,12 @@ void thread_runner(void *client_data_v) { int main(int argc, const char **argv) { thread_info client_data; +#if defined(_WIN32) + if (getenv("LIBCLANG_LOGGING") == NULL) + putenv("LIBCLANG_LOGGING=1"); +#else setenv("LIBCLANG_LOGGING", "1", /*overwrite=*/0); +#endif if (getenv("CINDEXTEST_NOTHREADS")) return carcmttest_main(argc, argv); |