add script for merge libclang/libLLVM
This commit is contained in:
parent
12e772747c
commit
2bce0a908b
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue