llvm.org GIT mirror llvm / aabc6a9
Remove the hack to check UNAME_RELEASE when identifying the Darwin version. This was only needed to locate llvm-gcc's installation directory when clang falls back to run llvm-gcc for i386 kexts. As of clang svn r140187, we're now just searching paths with several different Darwin versions on either side of the current version, so this is no longer needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140188 91177308-0d34-0410-b5e6-96231b3b80d8 Bob Wilson 8 years ago
1 changed file(s) with 0 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
2727
2828 static std::string getOSVersion() {
2929 struct utsname info;
30
31 #ifdef __APPLE__
32 // Recognize UNAME_RELEASE environment variable to match Darwin's uname,
33 // where the value of this variable sets the OS release version
34 // reported by "uname -r".
35 const char *UnameOverride = ::getenv("UNAME_RELEASE");
36 if (UnameOverride && UnameOverride[0] != '\0')
37 return UnameOverride;
38 #endif // __APPLE__
3930
4031 if (uname(&info))
4132 return "";