solidity compile fix

suggested from https://github.com/ethereum/solidity/issues/13854#issuecomment-1415991773
This commit is contained in:
Jacob Heider 2023-02-03 19:46:40 -05:00 committed by Jacob Heider
parent 0790f731d7
commit eb077fc603
2 changed files with 3 additions and 1 deletions

View file

@ -6,7 +6,7 @@ diff --color=auto -ru a/libsolidity/lsp/DocumentHoverHandler.cpp b/libsolidity/l
auto const [sourceNode, sourceOffset] = m_server.astNodeAndOffsetAtSourceLocation(sourceUnitName, lineColumn);
- MarkdownBuilder markdown{};
+ MarkdownBuilder markdown = {stringstream(ios_base::in)};
+ MarkdownBuilder markdown;
auto rangeToHighlight = toRange(sourceNode->location());
// Try getting the type definition of the underlying AST node, if available.

View file

@ -30,6 +30,7 @@ build:
if semverator satisfies ^0.8.18 {{version}}; then
# New libsolidity/lsb/DocumentHoverHandler.cpp doesn't like some versions of clang
# (default argument issue)
# https://github.com/ethereum/solidity/issues/13854
patch -p1 -d.. <../props/clang-error.diff
fi
@ -47,6 +48,7 @@ build:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX={{prefix}}
- -DPEDANTIC=OFF # otherwise fails due to deprecations in boost ^1.81
- -DSTRICT_Z3_VERSION=OFF # otherwise complains about Z3 version in cmake
test:
solc --bin fixture.sol