Filter the future all-of-llvm shared library out of the llvm-config
authorJeffrey Yasskin <jyasskin@google.com>
Thu, 25 Feb 2010 01:21:38 +0000 (01:21 +0000)
committerJeffrey Yasskin <jyasskin@google.com>
Thu, 25 Feb 2010 01:21:38 +0000 (01:21 +0000)
results.  I'm checking this in before the shared library so that I can
tell if it breaks anything on its own.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97089 91177308-0d34-0410-b5e6-96231b3b80d8

utils/GenLibDeps.pl

index b320a9128ce5705c65c2ad66ddfba6e10f1f384b..f1f7e72bc1a509d35202c94b30095eef8a8f6ca2 100755 (executable)
@@ -70,6 +70,8 @@ opendir DIR,$Directory;
 my @files = readdir DIR;
 closedir DIR;
 my @libs = grep(/libLLVM.*\.(dylib|so|a)$/,sort(@files));
+# Omit the all-of-llvm shared library.
+@libs = grep(!/libLLVM-\d\.\d(svn)?\.(dylib|so)/, @libs);
 my @objs = grep(/LLVM.*\.o$/,sort(@files));
 
 # Declare the hashes we will use to keep track of the library and object file