Update LLVM binary drops and scripts to the latest version from SVN
[WebKit-https.git] / Tools / Scripts / copy-webkitlibraries-to-product-directory
index bd50472..ebae458 100755 (executable)
@@ -138,11 +138,9 @@ if ($ENV{ENABLE_FTL_JIT}) {
     my $shouldUpdateLLVMLibraryToken = 0;
 
     if ($useOwnLLVM) {
-
-        chdir $ownLLVMDirectory;
-        if (!-e "Makefile.config") {
+        if (!-e "$ownLLVMDirectory/Makefile.config") {
             print("Configuring LLVM.\n");
-            (system("./configure --enable-optimized=yes --enable-backtraces=no --enable-targets=x86_64 --enable-libcpp=yes --enable-zlib=no")==0) or die;
+            (system("sh", "Tools/Scripts/configure-llvm", $ownLLVMDirectory)==0) or die;
         }
 
         print("Building LLVM.\n");