[PS4] Change the names of some "environmental" things to what our
licensees actually see in the toolchain we deliver to them. This will reduce the set of local patches we have to maintain. The triple is not changing. (The term ORBIS is an internal code name for PS4.) llvm-svn: 269672
This commit is contained in:
parent
9d61361acb
commit
595b969c67
|
@ -27,7 +27,7 @@
|
||||||
#define COMPILER_RT_MAX_HOSTLEN 128
|
#define COMPILER_RT_MAX_HOSTLEN 128
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define COMPILER_RT_GETHOSTNAME(Name, Len) gethostname(Name, Len)
|
#define COMPILER_RT_GETHOSTNAME(Name, Len) gethostname(Name, Len)
|
||||||
#elif defined(__PS4__)
|
#elif defined(__ORBIS__)
|
||||||
#define COMPILER_RT_GETHOSTNAME(Name, Len) (-1)
|
#define COMPILER_RT_GETHOSTNAME(Name, Len) (-1)
|
||||||
#else
|
#else
|
||||||
#define COMPILER_RT_GETHOSTNAME(Name, Len) lprofGetHostName(Name, Len)
|
#define COMPILER_RT_GETHOSTNAME(Name, Len) lprofGetHostName(Name, Len)
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
void __llvm_profile_recursive_mkdir(char *Pathname);
|
void __llvm_profile_recursive_mkdir(char *Pathname);
|
||||||
|
|
||||||
/* PS4 doesn't have getenv. Define a shim. */
|
/* PS4 doesn't have getenv. Define a shim. */
|
||||||
#if __PS4__
|
#if __ORBIS__
|
||||||
static inline char *getenv(const char *name) { return NULL; }
|
static inline char *getenv(const char *name) { return NULL; }
|
||||||
#endif /* #if __PS4__ */
|
#endif /* #if __ORBIS__ */
|
||||||
|
|
||||||
int lprofGetHostName(char *Name, int Len);
|
int lprofGetHostName(char *Name, int Len);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue