diff options
-rw-r--r-- | llvm/lib/Support/Unix/Host.inc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Support/Unix/Host.inc b/llvm/lib/Support/Unix/Host.inc index c5de97f73c9..dda3ce2c6f9 100644 --- a/llvm/lib/Support/Unix/Host.inc +++ b/llvm/lib/Support/Unix/Host.inc @@ -29,15 +29,6 @@ using namespace llvm; static std::string getOSVersion() { struct utsname info; -#ifdef __APPLE__ - // Recognize UNAME_RELEASE environment variable to match Darwin's uname, - // where the value of this variable sets the OS release version - // reported by "uname -r". - const char *UnameOverride = ::getenv("UNAME_RELEASE"); - if (UnameOverride && UnameOverride[0] != '\0') - return UnameOverride; -#endif // __APPLE__ - if (uname(&info)) return ""; |