diff options
author | Mike Stump <mrs@apple.com> | 2009-02-11 01:01:17 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-02-11 01:01:17 +0000 |
commit | 84606bb63f46c64873e7393467813d626679f09e (patch) | |
tree | c29097c50e1cbaa599ee01f38f147c9c5ad65cfe /tools/ccc/ccclib/Driver.py | |
parent | f684e6e793a336f52138a2609b207e6eef3c3022 (diff) |
More version experimentation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/ccc/ccclib/Driver.py')
-rw-r--r-- | tools/ccc/ccclib/Driver.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py index c892c27458..0ee3c52d9a 100644 --- a/tools/ccc/ccclib/Driver.py +++ b/tools/ccc/ccclib/Driver.py @@ -304,7 +304,10 @@ class Driver(object): def printVersion(self): # FIXME: Print default target triple. - print >>sys.stderr,'ccc version 1.0 ($HeadURL$)' + vers = '$HeadURL$' + vers = vers.split('/tools/ccc')[0] + vers = ' (' + vers[10:] + ')' + print >>sys.stderr,'ccc version 1.0' + vers def handleImmediateOptions(self, args): # FIXME: Some driver Arguments are consumed right off the bat, |