mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-12 06:49:02 +02:00
Don't set LLVM_REV if it's set on the command line.
This commit is contained in:
@@ -61,14 +61,14 @@ if ($old ne $out) {
|
||||
close $revh;
|
||||
}
|
||||
|
||||
$out = qq!#ifndef LDC_LLVM_VERSION_H
|
||||
#define LDC_LLVM_VERSION_H
|
||||
# Allow the user to manually define it on the command line...
|
||||
$out = qq!#ifndef LLVM_REV
|
||||
|
||||
// LLVM svn revision number, used to adapt to changes in LLVM
|
||||
// (Is 0 if LLVM is not an SVN trunk version)
|
||||
#define LLVM_REV $llvm_rev_nr
|
||||
|
||||
#endif // LDC_LLVM_VERSION_H\n!;
|
||||
#endif // LLVM_REV\n!;
|
||||
|
||||
$old = "";
|
||||
open $revh, "llvm-version.h" and $old = join "", <$revh>;
|
||||
|
||||
Reference in New Issue
Block a user