projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[MCTargetAsmParser] Move the member varialbes that reference
[oota-llvm.git]
/
utils
/
UpdateCMakeLists.pl
diff --git
a/utils/UpdateCMakeLists.pl
b/utils/UpdateCMakeLists.pl
index 94e69ce2556cae9073c2ea9615e3c829534cb8ef..c896ea839be88521f74ea749b97b87c1a4b7595a 100755
(executable)
--- a/
utils/UpdateCMakeLists.pl
+++ b/
utils/UpdateCMakeLists.pl
@@
-68,7
+68,7
@@
sub UpdateCMake {
while(<IN>) {
if (!$foundLibrary) {
print OUT $_;
while(<IN>) {
if (!$foundLibrary) {
print OUT $_;
- if (/^add_
clang_library\(/ || /^add_llvm_library
\(/) {
+ if (/^add_
[^_]+_library\(/ || /^add_llvm_target\(/ || /^add_[^_]+_executable
\(/) {
$foundLibrary = 1;
EmitCMakeList($dir);
}
$foundLibrary = 1;
EmitCMakeList($dir);
}
@@
-96,7
+96,7
@@
sub UpdateCMake {
my $digestB = Digest::MD5->new->addfile(*FILE)->hexdigest;
close(FILE);
my $digestB = Digest::MD5->new->addfile(*FILE)->hexdigest;
close(FILE);
- if ($digestA
!=
$digestB) {
+ if ($digestA
ne
$digestB) {
move($cmakeListNew, $cmakeList);
return 1;
}
move($cmakeListNew, $cmakeList);
return 1;
}