Skip to content

Commit 0fd13b7

Browse files
committed
Upgrade json-cpp to 1.9.3.
1 parent 8d4ec27 commit 0fd13b7

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Bugfixes:
88
* Type Checker: Fix internal compiler error related to oversized types.
99

1010
Compiler Features:
11+
* Build System: Update internal dependency of jsoncpp to 1.9.3.
1112
* Optimizer: Add rule to remove shifts inside the byte opcode.
1213

1314

cmake/jsoncpp.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,16 @@ endif()
3737
ExternalProject_Add(jsoncpp-project
3838
PREFIX "${prefix}"
3939
DOWNLOAD_DIR "${CMAKE_SOURCE_DIR}/deps/downloads"
40-
DOWNLOAD_NAME jsoncpp-1.9.2.tar.gz
41-
URL https://github.com/open-source-parsers/jsoncpp/archive/1.9.2.tar.gz
42-
URL_HASH SHA256=77a402fb577b2e0e5d0bdc1cf9c65278915cdb25171e3452c68b6da8a561f8f0
40+
DOWNLOAD_NAME jsoncpp-1.9.3.tar.gz
41+
URL https://github.com/open-source-parsers/jsoncpp/archive/1.9.3.tar.gz
42+
URL_HASH SHA256=8593c1d69e703563d94d8c12244e2e18893eeb9a8a9f8aa3d09a327aa45c8f7d
4343
CMAKE_COMMAND ${JSONCPP_CMAKE_COMMAND}
4444
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
4545
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
4646
-DCMAKE_INSTALL_LIBDIR=lib
4747
# Build static lib but suitable to be included in a shared lib.
4848
-DCMAKE_POSITION_INDEPENDENT_CODE=${BUILD_SHARED_LIBS}
49+
-DJSONCPP_WITH_EXAMPLE=OFF
4950
-DJSONCPP_WITH_TESTS=OFF
5051
-DJSONCPP_WITH_PKGCONFIG_SUPPORT=OFF
5152
-DCMAKE_CXX_FLAGS=${JSONCPP_CXX_FLAGS}

libsolutil/JSON.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
using namespace std;
3333

3434
static_assert(
35-
(JSONCPP_VERSION_MAJOR == 1) && (JSONCPP_VERSION_MINOR == 9) && (JSONCPP_VERSION_PATCH == 2),
36-
"Unexpected jsoncpp version: " JSONCPP_VERSION_STRING ". Expecting 1.9.2."
35+
(JSONCPP_VERSION_MAJOR == 1) && (JSONCPP_VERSION_MINOR == 9) && (JSONCPP_VERSION_PATCH == 3),
36+
"Unexpected jsoncpp version: " JSONCPP_VERSION_STRING ". Expecting 1.9.3."
3737
);
3838

3939
namespace solidity::util

scripts/create_source_tarball.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ REPO_ROOT="$(dirname "$0")"/..
3131
fi
3232
# Add dependencies
3333
mkdir -p "$SOLDIR/deps/downloads/" 2>/dev/null || true
34-
wget -O "$SOLDIR/deps/downloads/jsoncpp-1.9.2.tar.gz" https://github.com/open-source-parsers/jsoncpp/archive/1.9.2.tar.gz
34+
wget -O "$SOLDIR/deps/downloads/jsoncpp-1.9.3.tar.gz" https://github.com/open-source-parsers/jsoncpp/archive/1.9.3.tar.gz
3535
mkdir -p "$REPO_ROOT/upload"
3636
tar --owner 0 --group 0 -czf "$REPO_ROOT/upload/solidity_$versionstring.tar.gz" -C "$TEMPDIR" "solidity_$versionstring"
3737
rm -r "$TEMPDIR"

scripts/release_ppa.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ mv solidity solc
107107

108108
# Fetch jsoncpp dependency
109109
mkdir -p ./solc/deps/downloads/ 2>/dev/null || true
110-
wget -O ./solc/deps/downloads/jsoncpp-1.9.2.tar.gz https://github.com/open-source-parsers/jsoncpp/archive/1.9.2.tar.gz
110+
wget -O ./solc/deps/downloads/jsoncpp-1.9.3.tar.gz https://github.com/open-source-parsers/jsoncpp/archive/1.9.3.tar.gz
111111

112112
# Determine version
113113
cd solc

0 commit comments

Comments
 (0)