Skip to content

Commit

Permalink
Use regex instead of special casing clang and llvm libraries.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161065 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
tkremenek committed Jul 31, 2012
1 parent 36bcc11 commit 521ed46
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/UpdateCMakeLists.pl
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ sub UpdateCMake {
while(<IN>) {
if (!$foundLibrary) {
print OUT $_;
if (/^add_clang_library\(/ || /^add_llvm_library\(/ || /^add_llvm_target\(/
|| /^add_executable\(/) {
if (/^add_[^_]+_library\(/ || /^add_llvm_target\(/ || /^add_executable\(/) {
$foundLibrary = 1;
EmitCMakeList($dir);
}
Expand Down

0 comments on commit 521ed46

Please sign in to comment.