[Lldb-commits] [lldb] r196128 - Request for review: Fix build-llvm.pl

Jean-Daniel Dupas devlists at shadowlab.org
Mon Dec 2 10:32:35 PST 2013


Author: jddupas
Date: Mon Dec  2 12:32:35 2013
New Revision: 196128

URL: http://llvm.org/viewvc/llvm-project?rev=196128&view=rev
Log:
Request for review: Fix build-llvm.pl

Summary:
- Stop to try to rebuild llvm on each invocation by removing the invalid library entry libLLVMArchive.a which no longer exists.
- Remove the useless ranlib invocation. "libtools -static" automatically takes care of the archive table of content.

CC: lldb-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D2296

Modified:
    lldb/trunk/scripts/build-llvm.pl

Modified: lldb/trunk/scripts/build-llvm.pl
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/build-llvm.pl?rev=196128&r1=196127&r2=196128&view=diff
==============================================================================
--- lldb/trunk/scripts/build-llvm.pl (original)
+++ lldb/trunk/scripts/build-llvm.pl Mon Dec  2 12:32:35 2013
@@ -64,7 +64,6 @@ our @archive_files = (
     "$llvm_configuration/lib/libclangSema.a",
     "$llvm_configuration/lib/libclangSerialization.a",
     "$llvm_configuration/lib/libLLVMAnalysis.a",
-    "$llvm_configuration/lib/libLLVMArchive.a",
     "$llvm_configuration/lib/libLLVMARMAsmParser.a",
     "$llvm_configuration/lib/libLLVMARMAsmPrinter.a",
     "$llvm_configuration/lib/libLLVMARMCodeGen.a",
@@ -205,7 +204,7 @@ sub build_llvm
                 if (!-d $llvm_dstroot_arch_bin)
                 {
                     do_command ("mkdir -p '$llvm_dstroot_arch_bin'", "making llvm build arch bin directory '$llvm_dstroot_arch_bin'", 1);
-                    my @tools = ("ar", "nm", "ranlib", "strip", "lipo", "ld", "as");
+                    my @tools = ("ar", "nm", "strip", "lipo", "ld", "as");
                     my $script_mode = 0755;
                     my $prog;
                     for $prog (@tools)
@@ -390,7 +389,6 @@ sub create_single_llvm_archive_for_arch
     }
     close (FILES);
     do_command ("libtool -static -o '$arch_output_file' -filelist '$files'");
-    do_command ("ranlib '$arch_output_file'");
 
     foreach $object_dir (@object_dirs)
     {





More information about the lldb-commits mailing list