summaryrefslogtreecommitdiff
path: root/lib/Support/Unix/Host.inc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/Unix/Host.inc')
-rw-r--r--lib/Support/Unix/Host.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Support/Unix/Host.inc b/lib/Support/Unix/Host.inc
index 744fb9e699..c5de97f73c 100644
--- a/lib/Support/Unix/Host.inc
+++ b/lib/Support/Unix/Host.inc
@@ -30,7 +30,9 @@ static std::string getOSVersion() {
struct utsname info;
#ifdef __APPLE__
- // Recognize UNAME_RELEASE environment variable to match Darwin uname.
+ // 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;