mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
solidity compiling under msvc && boosts cmake file fixed
This commit is contained in:
parent
2d8eaf8482
commit
c7cf8c6db4
@ -6,6 +6,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTATICLIB")
|
||||
aux_source_directory(. SRC_LIST)
|
||||
|
||||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
include_directories(${JSONCPP_INCLUDE_DIRS})
|
||||
include_directories(..)
|
||||
|
||||
set(EXECUTABLE solidity)
|
||||
@ -17,11 +18,9 @@ else()
|
||||
add_library(${EXECUTABLE} SHARED ${SRC_LIST} ${HEADERS})
|
||||
endif()
|
||||
|
||||
target_link_libraries(${EXECUTABLE} evmcore devcore)
|
||||
# TODO: Temporary until PR 532 https://github.com/ethereum/cpp-ethereum/pull/532
|
||||
# gets accepted. Then we can simply add jsoncpp as a dependency and not the
|
||||
# whole of JSONRPC as we are doing right here
|
||||
target_link_libraries(${EXECUTABLE} ${JSONRPC_LS})
|
||||
target_link_libraries(${EXECUTABLE} evmcore)
|
||||
target_link_libraries(${EXECUTABLE} devcore)
|
||||
target_link_libraries(${EXECUTABLE} ${JSONCPP_LIBRARIES})
|
||||
|
||||
install( TARGETS ${EXECUTABLE} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib )
|
||||
install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} )
|
||||
|
@ -84,6 +84,22 @@ public:
|
||||
/// scanning the source code - this is useful for printing exception information.
|
||||
static bytes staticCompile(std::string const& _sourceCode, bool _optimize = false);
|
||||
|
||||
/// Compile under msvc results in error CC2280
|
||||
CompilerStack& operator=(const CompilerStack& _other)
|
||||
{
|
||||
m_scanner = _other.m_scanner;
|
||||
m_globalContext = _other.m_globalContext;
|
||||
m_contractASTNode = _other.m_contractASTNode;
|
||||
m_parseSuccessful = _other.m_parseSuccessful;
|
||||
m_interface.reset(_other.m_interface.get());
|
||||
m_userDocumentation.reset(_other.m_userDocumentation.get());
|
||||
m_devDocumentation.reset(_other.m_devDocumentation.get());
|
||||
m_compiler = _other.m_compiler;
|
||||
m_interfaceHandler = _other.m_interfaceHandler;
|
||||
m_bytecode = m_bytecode;
|
||||
return *this;
|
||||
}
|
||||
|
||||
private:
|
||||
std::shared_ptr<Scanner> m_scanner;
|
||||
std::shared_ptr<GlobalContext> m_globalContext;
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <jsonrpc/json/json.h>
|
||||
#include <jsoncpp/json/json.h>
|
||||
|
||||
namespace dev
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user