From aa7f3a405d112d9fe0084a8b3c4667e265f607ad Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Thu, 31 Oct 2019 16:22:07 -0700 Subject: [PATCH] [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 --- compiler-rt/lib/profile/InstrProfilingPort.h | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler-rt/lib/profile/InstrProfilingPort.h b/compiler-rt/lib/profile/InstrProfilingPort.h index 9462cf1..ceafdb9 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 #endif /* defined(_WIN32) */ -- 2.7.4