]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - copy-llvm-ir-to-derived-sources.sh
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / copy-llvm-ir-to-derived-sources.sh
index 940fbb54a369807d8eedb7597f7ec7ea8b8021b4..70d254d2803842fc0f960959415edd836bb56441 100755 (executable)
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
 
 OBJ_DIR=${TARGET_TEMP_DIR}/Objects-${CURRENT_VARIANT}
-RUNTIME_DERIVED_SOURCES_DIR=${BUILT_PRODUCTS_DIR}/DerivedSources/JavaScriptCoreRuntime
+RUNTIME_INSTALL_DIR=${BUILT_PRODUCTS_DIR}/${JAVASCRIPTCORE_RESOURCES_DIR}/Runtime
 
 shopt -s nullglob
 for arch in $ARCHS;
 do
     if [ -d "$OBJ_DIR/$arch" ];
     then
-        mkdir -p "$RUNTIME_DERIVED_SOURCES_DIR/$arch"
+        mkdir -p "$RUNTIME_INSTALL_DIR/$arch"
+
         for file in "$OBJ_DIR/$arch"/*.o;
         do
             file_name=${file##*/}
-            gzip -9 -c "$file" > "$RUNTIME_DERIVED_SOURCES_DIR/$arch/${file_name%.o}.bc.gz"
+            cp "$file" "$RUNTIME_INSTALL_DIR/$arch/${file_name%.o}.bc"
         done
+        ${SRCROOT}/build-symbol-table-index.py $arch
     fi
 done