add script for merge libclang/libLLVM

This commit is contained in:
Roy Qu 2022-03-19 21:59:23 +08:00
parent 12e772747c
commit 2bce0a908b
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#!/bin/bash
rm libLLVM_static.a
rm *.obj
for FILE in libLLVM*.a
do
PREFIX=`echo "$FILE" | sed s/^libLLVM//g | sed s/\.a//g`
echo $PREFIX
echo $FILE
rm -rf *.obj
ar -x $FILE
for OBJ in *.obj
do
OBJ_NAME=`echo "$OBJ" | sed s/\.cpp//g`
mv $OBJ "$PREFIX-$OBJ_NAME"
done
ar r libLLVM_static.a *.obj
done
rm -rf *.obj

View File

@ -0,0 +1,17 @@
#!/bin/bash
rm libclang_static.a
rm libclang.dll.a
rm libclang-cpp.dll.a
rm *.obj
for FILE in libclang*.a
do
echo $FILE
rm -rf *.obj
ar -x $FILE
for OBJ in *.obj
do
mv $OBJ "$FILE-$OBJ"
done
ar r libclang_static.a *.obj
done
rm -rf *.obj