[compiler-rt] aa7f3a4 - [profile] Speculative fix for Windows after D68351
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 31 16:23:46 PDT 2019
Author: Vedant Kumar
Date: 2019-10-31T16:23:39-07:00
New Revision: aa7f3a405d112d9fe0084a8b3c4667e265f607ad
URL: https://github.com/llvm/llvm-project/commit/aa7f3a405d112d9fe0084a8b3c4667e265f607ad
DIFF: https://github.com/llvm/llvm-project/commit/aa7f3a405d112d9fe0084a8b3c4667e265f607ad.diff
LOG: [profile] Speculative fix for Windows after D68351
setenv() appears to not be available on Windows:
http://lab.llvm.org:8011/builders/sanitizer-windows/builds/53545/steps/stage%201%20build/logs/stdio
Added:
Modified:
compiler-rt/lib/profile/InstrProfilingPort.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/profile/InstrProfilingPort.h b/compiler-rt/lib/profile/InstrProfilingPort.h
index 9462cf1a240f..ceafdb9783f2 100644
--- a/compiler-rt/lib/profile/InstrProfilingPort.h
+++ b/compiler-rt/lib/profile/InstrProfilingPort.h
@@ -105,6 +105,7 @@ static inline size_t getpagesize() {
GetNativeSystemInfo(&S);
return S.dwPageSize;
}
+#define setenv _putenv
#else /* defined(_WIN32) */
#include <unistd.h>
#endif /* defined(_WIN32) */
More information about the llvm-commits
mailing list