diff options
author | Refael Ackermann <refack@gmail.com> | 2019-05-28 08:46:21 -0400 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-06-01 09:55:12 -0400 |
commit | ed74896b1fae1c163b3906163f3bf46326618ddb (patch) | |
tree | 7fb05c5a19808e0c5cd95837528e9005999cf540 /deps/v8/tools/gcmole/package.sh | |
parent | 2a850cd0664a4eee51f44d0bb8c2f7a3fe444154 (diff) | |
download | android-node-v8-ed74896b1fae1c163b3906163f3bf46326618ddb.tar.gz android-node-v8-ed74896b1fae1c163b3906163f3bf46326618ddb.tar.bz2 android-node-v8-ed74896b1fae1c163b3906163f3bf46326618ddb.zip |
deps: update V8 to 7.5.288.22
PR-URL: https://github.com/nodejs/node/pull/27375
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'deps/v8/tools/gcmole/package.sh')
-rw-r--r-- | deps/v8/tools/gcmole/package.sh | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/deps/v8/tools/gcmole/package.sh b/deps/v8/tools/gcmole/package.sh new file mode 100644 index 0000000000..6206e7bb2e --- /dev/null +++ b/deps/v8/tools/gcmole/package.sh @@ -0,0 +1,45 @@ +#!/usr/bin/env bash + +# Copyright 2019 the V8 project authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# This script will package a built gcmole plugin together with the +# corresponding clang binary into an archive which can be used on the +# buildbot infrastructure to be run against V8 checkouts. + +THIS_DIR="$(readlink -f "$(dirname "${0}")")" + +PACKAGE_DIR="${THIS_DIR}/../../tools/gcmole/gcmole-tools" +PACKAGE_FILE="${THIS_DIR}/../../tools/gcmole/gcmole-tools.tar.gz" +PACKAGE_SUM="${THIS_DIR}/../../tools/gcmole/gcmole-tools.tar.gz.sha1" +BUILD_DIR="${THIS_DIR}/../../third_party/llvm+clang-build" + +# Echo all commands +set -x + +# Copy all required files +mkdir -p "${PACKAGE_DIR}/bin" +cp "${BUILD_DIR}/bin/clang++" "${PACKAGE_DIR}/bin" +mkdir -p "${PACKAGE_DIR}/lib" +cp -r "${BUILD_DIR}/lib/clang" "${PACKAGE_DIR}/lib" +cp "${THIS_DIR}/libgcmole.so" "${PACKAGE_DIR}" + +# Generate the archive +cd "$(dirname "${PACKAGE_DIR}")" +tar -c -z -f "${PACKAGE_FILE}" "$(basename "${PACKAGE_DIR}")" + +# Generate checksum +sha1sum "${PACKAGE_FILE}" | awk '{print $1}' > "${PACKAGE_SUM}" + +set +x + +echo +echo You can find a packaged version of gcmole here: +echo +echo $(readlink -f "${PACKAGE_FILE}") +echo +echo You can now run gcmole using this command: +echo +echo CLANG_BIN="tools/gcmole/gcmole-tools/bin" lua tools/gcmole/gcmole.lua +echo |