diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-07-31 18:23:44 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-07-31 18:23:44 +0000 |
commit | 521ed460e9a2c4821987cdfd62f68720d2c40ccd (patch) | |
tree | 60dd691bdb2e82c87fc33cc474521e95e5bf0f2b /utils/UpdateCMakeLists.pl | |
parent | 36bcc11236af961ff94820bf9817ecb4f98ace7e (diff) | |
download | external_llvm-521ed460e9a2c4821987cdfd62f68720d2c40ccd.zip external_llvm-521ed460e9a2c4821987cdfd62f68720d2c40ccd.tar.gz external_llvm-521ed460e9a2c4821987cdfd62f68720d2c40ccd.tar.bz2 |
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-x | utils/UpdateCMakeLists.pl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/UpdateCMakeLists.pl b/utils/UpdateCMakeLists.pl index 8f53514..d92a767 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); } |