summaryrefslogtreecommitdiff
path: root/lib/Support/Unix/Host.inc
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2011-08-10 05:02:22 +0000
committerBob Wilson <bob.wilson@apple.com>2011-08-10 05:02:22 +0000
commit21ab6c066d3ca953409916f0a78d1c022a665d29 (patch)
tree7ecb3400e0c9ac6ed588a4e942fec541fc54ccfa /lib/Support/Unix/Host.inc
parent39f40299a6efc06747db0de53deb9be248913998 (diff)
downloadllvm-21ab6c066d3ca953409916f0a78d1c022a665d29.tar.gz
llvm-21ab6c066d3ca953409916f0a78d1c022a665d29.tar.bz2
llvm-21ab6c066d3ca953409916f0a78d1c022a665d29.tar.xz
Clarify a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137204 91177308-0d34-0410-b5e6-96231b3b80d8
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;