Filter the future all-of-llvm shared library out of the llvm-config

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
This commit is contained in:
Jeffrey Yasskin 2010-02-25 01:21:38 +00:00
parent f0bd4cc1b6
commit b05942cec9

View File

@ -70,6 +70,8 @@ opendir DIR,$Directory;
my @files = readdir DIR; my @files = readdir DIR;
closedir DIR; closedir DIR;
my @libs = grep(/libLLVM.*\.(dylib|so|a)$/,sort(@files)); 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)); my @objs = grep(/LLVM.*\.o$/,sort(@files));
# Declare the hashes we will use to keep track of the library and object file # Declare the hashes we will use to keep track of the library and object file