[llvm-commits] [llvm] r161065 - /llvm/trunk/utils/UpdateCMakeLists.pl

Ted Kremenek kremenek at apple.com
Tue Jul 31 11:23:45 PDT 2012


Author: kremenek
Date: Tue Jul 31 13:23:44 2012
New Revision: 161065

URL: http://llvm.org/viewvc/llvm-project?rev=161065&view=rev
Log:
Use regex instead of special casing clang and llvm libraries.

Modified:
    llvm/trunk/utils/UpdateCMakeLists.pl

Modified: llvm/trunk/utils/UpdateCMakeLists.pl
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/UpdateCMakeLists.pl?rev=161065&r1=161064&r2=161065&view=diff
==============================================================================
--- llvm/trunk/utils/UpdateCMakeLists.pl (original)
+++ llvm/trunk/utils/UpdateCMakeLists.pl Tue Jul 31 13:23:44 2012
@@ -68,8 +68,7 @@
   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);
       }





More information about the llvm-commits mailing list