From: Vedant Kumar Date: Thu, 31 Oct 2019 23:22:07 +0000 (-0700) Subject: [profile] Speculative fix for Windows after D68351 X-Git-Tag: llvmorg-11-init~5288 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa7f3a405d112d9fe0084a8b3c4667e265f607ad;p=platform%2Fupstream%2Fllvm.git [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 --- 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) */