Add a shim for setenv on PS4 since it does not exist.
authorDouglas Yung <douglas.yung@sony.com>
Tue, 12 Nov 2019 23:05:45 +0000 (15:05 -0800)
committerDouglas Yung <douglas.yung@sony.com>
Tue, 12 Nov 2019 23:05:45 +0000 (15:05 -0800)
commit7ebde1bf67daa24ea7735f2b2d7000d074e2ba93
tree13e7d0904d19136f741c8071d532beab16d8ffc3
parent3e1aee2ba717529b651a79ed4fc7e7147358043f
Add a shim for setenv on PS4 since it does not exist.

A few years back a similar change was made for getenv since neither function is supported on the PS4 platform.

Recently, commit d889d1e added a call to setenv in compiler-rt which was causing linking errors because the symbol was not found. This fixes that issue by putting in a shim similar to how we previously dealt with the lack of getenv.

Differential Revision: https://reviews.llvm.org/D70033
compiler-rt/lib/profile/InstrProfilingUtil.h