summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
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
commit527bd079344a60668b97cc50f3c77ed55ca463ac (patch)
tree7ff9a4f270f9d7b1240b7853490357a835df5c71 /llvm/lib/Support/Unix
parent4d0040baf8a432019c15668570a1ec576bdb8798 (diff)
downloadbcm5719-llvm-527bd079344a60668b97cc50f3c77ed55ca463ac.tar.gz
bcm5719-llvm-527bd079344a60668b97cc50f3c77ed55ca463ac.zip
Clarify a comment.
llvm-svn: 137204
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Host.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Host.inc b/llvm/lib/Support/Unix/Host.inc
index 744fb9e6996..c5de97f73c9 100644
--- a/llvm/lib/Support/Unix/Host.inc
+++ b/llvm/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;
OpenPOWER on IntegriCloud