[PATCH] D98271: [Support][test] Unconditionally use setenv macro when compiling on Windows

Markus Böck via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 9 10:53:41 PST 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1956288fbbaf: [Support][test] Unconditionally use setenv macro when compiling on Windows (authored by zero9178).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98271/new/

https://reviews.llvm.org/D98271

Files:
  llvm/unittests/Support/ThreadPool.cpp


Index: llvm/unittests/Support/ThreadPool.cpp
===================================================================
--- llvm/unittests/Support/ThreadPool.cpp
+++ llvm/unittests/Support/ThreadPool.cpp
@@ -240,7 +240,7 @@
 // Just a reachable symbol to ease resolving of the executable's path.
 static cl::opt<std::string> ThreadPoolTestStringArg1("thread-pool-string-arg1");
 
-#ifdef _MSC_VER
+#ifdef _WIN32
 #define setenv(name, var, ignore) _putenv_s(name, var)
 #endif
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98271.329395.patch
Type: text/x-patch
Size: 471 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210309/4db87e62/attachment.bin>


More information about the llvm-commits mailing list