From: Ted Kremenek Date: Tue, 31 Jul 2012 18:23:44 +0000 (+0000) Subject: Use regex instead of special casing clang and llvm libraries. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=521ed460e9a2c4821987cdfd62f68720d2c40ccd;p=oota-llvm.git Use regex instead of special casing clang and llvm libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161065 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/UpdateCMakeLists.pl b/utils/UpdateCMakeLists.pl index 8f535145de3..d92a767adf3 100755 --- a/utils/UpdateCMakeLists.pl +++ b/utils/UpdateCMakeLists.pl @@ -68,8 +68,7 @@ sub UpdateCMake { while() { 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); }