diff options
| author | Vedant Kumar <vsk@apple.com> | 2019-10-31 16:22:07 -0700 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2019-10-31 16:23:39 -0700 |
| commit | aa7f3a405d112d9fe0084a8b3c4667e265f607ad (patch) | |
| tree | aa07a4459169bbaf592f8d05649732974c2e7f40 /compiler-rt/lib/profile/InstrProfilingPort.h | |
| parent | bbbd22e6458b3197843c7d29afb1424544dbe1db (diff) | |
| download | bcm5719-llvm-aa7f3a405d112d9fe0084a8b3c4667e265f607ad.tar.gz bcm5719-llvm-aa7f3a405d112d9fe0084a8b3c4667e265f607ad.zip | |
[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
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfilingPort.h')
| -rw-r--r-- | compiler-rt/lib/profile/InstrProfilingPort.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingPort.h b/compiler-rt/lib/profile/InstrProfilingPort.h index 9462cf1a240..ceafdb9783f 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) */ |

