Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: tools/clang/scripts/package.sh

Issue 970053002: Build and install LLVM gold plugin on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, drop CLANG_SUB_REVISION change Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/clang/plugins/ChromeClassTester.cpp ('k') | tools/clang/scripts/update.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « tools/clang/plugins/ChromeClassTester.cpp ('k') | tools/clang/scripts/update.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698