summaryrefslogtreecommitdiff
path: root/utils/UpdateCMakeLists.pl
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-07-31 18:23:44 +0000
committerTed Kremenek <kremenek@apple.com>2012-07-31 18:23:44 +0000
commit521ed460e9a2c4821987cdfd62f68720d2c40ccd (patch)
tree60dd691bdb2e82c87fc33cc474521e95e5bf0f2b /utils/UpdateCMakeLists.pl
parent36bcc11236af961ff94820bf9817ecb4f98ace7e (diff)
downloadllvm-521ed460e9a2c4821987cdfd62f68720d2c40ccd.tar.gz
llvm-521ed460e9a2c4821987cdfd62f68720d2c40ccd.tar.bz2
llvm-521ed460e9a2c4821987cdfd62f68720d2c40ccd.tar.xz
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
Diffstat (limited to 'utils/UpdateCMakeLists.pl')
-rwxr-xr-xutils/UpdateCMakeLists.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/UpdateCMakeLists.pl b/utils/UpdateCMakeLists.pl
index 8f535145de..d92a767adf 100755
--- a/utils/UpdateCMakeLists.pl
+++ b/utils/UpdateCMakeLists.pl
@@ -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);
}