Removed unnecessary dylibs from Apple builds, with or without "lib" prefix.
authorBob Wilson <bob.wilson@apple.com>
Sat, 26 Feb 2011 00:22:17 +0000 (00:22 +0000)
committerBob Wilson <bob.wilson@apple.com>
Sat, 26 Feb 2011 00:22:17 +0000 (00:22 +0000)
Radar 9056686

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

utils/buildit/build_llvm

index 95cd3b707cd9ac6e5c1c2f34d5ff1edc5ae11bc3..38b0bfd3848dee2cb0792507022f5a5f7a2d3b1b 100755 (executable)
@@ -267,8 +267,9 @@ fi
 # The Hello dylib is an example of how to build a pass.
 # The BugpointPasses module is only used to test bugpoint.
 # These unversioned dylibs cause verification failures, so do not install them.
-rm $DEST_DIR$DEST_ROOT/lib/libLLVMHello.dylib
-rm $DEST_DIR$DEST_ROOT/lib/libBugpointPasses.dylib
+# (The wildcards are used to match a "lib" prefix if it is present.)
+rm $DEST_DIR$DEST_ROOT/lib/*LLVMHello.dylib
+rm $DEST_DIR$DEST_ROOT/lib/*BugpointPasses.dylib
 
 # Compress manpages
 MDIR=$DEST_DIR$DEST_ROOT/share/man/man1