diff options
| author | Vedant Kumar <vsk@apple.com> | 2019-10-31 16:35:57 -0700 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2019-10-31 16:35:58 -0700 |
| commit | a49795d8abcf8bf5d38b6ba4e665559c30eb3e62 (patch) | |
| tree | e1b195c0b5e286c2a0adef6c93f8fd0d70179ecd /compiler-rt/lib/profile/InstrProfilingPort.h | |
| parent | 6dfe8e590e1e50e26c80af59971bc206d8c567f6 (diff) | |
| download | bcm5719-llvm-a49795d8abcf8bf5d38b6ba4e665559c30eb3e62.tar.gz bcm5719-llvm-a49795d8abcf8bf5d38b6ba4e665559c30eb3e62.zip | |
[profile] Third speculative fix for Windows after D68351
_putenv on Windows takes 1 argument, whereas setenv elsewhere takes 3.
Just treat the two platforms differently.
http://lab.llvm.org:8011/builders/sanitizer-windows/builds/53547
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfilingPort.h')
| -rw-r--r-- | compiler-rt/lib/profile/InstrProfilingPort.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingPort.h b/compiler-rt/lib/profile/InstrProfilingPort.h index ceafdb9783f..9462cf1a240 100644 --- a/compiler-rt/lib/profile/InstrProfilingPort.h +++ b/compiler-rt/lib/profile/InstrProfilingPort.h @@ -105,7 +105,6 @@ static inline size_t getpagesize() { GetNativeSystemInfo(&S); return S.dwPageSize; } -#define setenv _putenv #else /* defined(_WIN32) */ #include <unistd.h> #endif /* defined(_WIN32) */ |

