From: Mike Stump Date: Wed, 11 Feb 2009 01:01:17 +0000 (+0000) Subject: More version experimentation. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84606bb63f46c64873e7393467813d626679f09e;p=clang More version experimentation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64271 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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,