forked from OSchip/llvm-project
Use regex instead of special casing clang and llvm libraries.
llvm-svn: 161065
This commit is contained in:
parent
69bd4e803b
commit
cf8cfd7fc2
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue