mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
solidity compile fix
suggested from https://github.com/ethereum/solidity/issues/13854#issuecomment-1415991773
This commit is contained in:
parent
0790f731d7
commit
eb077fc603
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue