Index: tools/clang/scripts/package.sh |
diff --git a/tools/clang/scripts/package.sh b/tools/clang/scripts/package.sh |
index 453a1661e926a4ab54c7aefee5b143fd811f4996..25cd6f0e0b4b9e44257a2d134e0125649f93868a 100755 |
--- a/tools/clang/scripts/package.sh |
+++ b/tools/clang/scripts/package.sh |
@@ -95,6 +95,11 @@ mkdir $PDIR |
mkdir $PDIR/bin |
mkdir $PDIR/lib |
+GOLDDIR=llvmgold-$R |
+if [ "$(uname -s)" = "Linux" ]; then |
+ mkdir -p $GOLDDIR/lib |
+fi |
+ |
if [ "$(uname -s)" = "Darwin" ]; then |
SO_EXT="dylib" |
else |
@@ -124,6 +129,11 @@ fi |
cp "${LLVM_LIB_DIR}/libFindBadConstructs.${SO_EXT}" $PDIR/lib |
cp "${LLVM_LIB_DIR}/libBlinkGCPlugin.${SO_EXT}" $PDIR/lib |
+# Copy gold plugin on Linux. |
+if [ "$(uname -s)" = "Linux" ]; then |
+ cp "${LLVM_LIB_DIR}/LLVMgold.${SO_EXT}" $GOLDDIR/lib |
+fi |
+ |
if [[ -n "${gcc_toolchain}" ]]; then |
# Copy the stdlibc++.so.6 we linked Clang against so it can run. |
cp "${LLVM_LIB_DIR}/libstdc++.so.6" $PDIR/lib |
@@ -169,6 +179,10 @@ else |
tar zcf $PDIR.tgz -C $PDIR bin lib buildlog.txt |
fi |
+if [ "$(uname -s)" = "Linux" ]; then |
+ tar zcf $GOLDDIR.tgz -C $GOLDDIR lib |
+fi |
+ |
if [ "$(uname -s)" = "Darwin" ]; then |
PLATFORM=Mac |
else |
@@ -178,5 +192,9 @@ fi |
echo To upload, run: |
echo gsutil cp -a public-read $PDIR.tgz \ |
gs://chromium-browser-clang/$PLATFORM/$PDIR.tgz |
+if [ "$(uname -s)" = "Linux" ]; then |
+ echo gsutil cp -a public-read $GOLDDIR.tgz \ |
+ gs://chromium-browser-clang/$PLATFORM/$GOLDDIR.tgz |
+fi |
# FIXME: Warn if the file already exists on the server. |