comparison revisions.pl.in @ 1123:165a920f4e88

Don't set LLVM_REV if it's set on the command line.
author Frits van Bommel <fvbommel wxs.nl>
date Wed, 18 Mar 2009 00:25:36 +0100
parents 123812e02bc8
children c86a629f24dd
comparison
equal deleted inserted replaced
1122:c614ef596a20 1123:165a920f4e88
59 open $revh, ">revisions.h" or die "cannot create revisions.h: $!"; 59 open $revh, ">revisions.h" or die "cannot create revisions.h: $!";
60 print $revh $out; 60 print $revh $out;
61 close $revh; 61 close $revh;
62 } 62 }
63 63
64 $out = qq!#ifndef LDC_LLVM_VERSION_H 64 # Allow the user to manually define it on the command line...
65 #define LDC_LLVM_VERSION_H 65 $out = qq!#ifndef LLVM_REV
66 66
67 // LLVM svn revision number, used to adapt to changes in LLVM 67 // LLVM svn revision number, used to adapt to changes in LLVM
68 // (Is 0 if LLVM is not an SVN trunk version) 68 // (Is 0 if LLVM is not an SVN trunk version)
69 #define LLVM_REV $llvm_rev_nr 69 #define LLVM_REV $llvm_rev_nr
70 70
71 #endif // LDC_LLVM_VERSION_H\n!; 71 #endif // LLVM_REV\n!;
72 72
73 $old = ""; 73 $old = "";
74 open $revh, "llvm-version.h" and $old = join "", <$revh>; 74 open $revh, "llvm-version.h" and $old = join "", <$revh>;
75 75
76 if ($old ne $out) { 76 if ($old ne $out) {