Skip to content

Commit

Permalink
Build: Lock the cxx-common version
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrogario committed Feb 18, 2021
1 parent c121a09 commit bcd634d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ ARCH_VERSION=unknown
BUILD_FLAGS=
USE_HOST_COMPILER=0
LIBRARIES="${BUILD_DIR}/libraries"
CXX_COMMON_VERSION="v0.1.1"

Z3_ARCHIVE=z3-
Z3_VERSION=4.7.1
Expand Down Expand Up @@ -102,7 +103,7 @@ function GetArchVersion
function DownloadCxxCommon
{
local GITHUB_LIBS="${LIBRARY_VERSION}.tar.xz"
local URL="https://github.com/trailofbits/cxx-common/releases/latest/download/${GITHUB_LIBS}"
local URL="https://github.com/trailofbits/cxx-common/releases/download/${CXX_COMMON_VERSION}/${GITHUB_LIBS}"

echo "Fetching: ${URL}"
if ! curl -LO "${URL}"; then
Expand Down
3 changes: 2 additions & 1 deletion scripts/build_with_vcpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ LLVM_VERSION=llvm-9
OS_VERSION=unknown
ARCH_VERSION=unknown
BUILD_FLAGS=
CXX_COMMON_VERSION="v0.1.1"

# There are pre-build versions of various libraries for specific
# Ubuntu releases.
Expand Down Expand Up @@ -102,7 +103,7 @@ function GetArchVersion
function DownloadVcpkgLibraries
{
local GITHUB_LIBS="${LIBRARY_VERSION}.tar.xz"
local URL="https://github.com/trailofbits/cxx-common/releases/latest/download/${GITHUB_LIBS}"
local URL="https://github.com/trailofbits/cxx-common/releases/download/${CXX_COMMON_VERSION}/${GITHUB_LIBS}"

mkdir -p "${DOWNLOAD_DIR}"
pushd "${DOWNLOAD_DIR}" || return 1
Expand Down

0 comments on commit bcd634d

Please sign in to comment.