mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
Removing boost dependency from libevmjit
This commit is contained in:
parent
a21362a7f8
commit
3dcf30463b
6 changed files with 6 additions and 8 deletions
|
|
@ -32,9 +32,6 @@ else()
|
||||||
link_directories(/usr/lib/llvm-3.5/lib)
|
link_directories(/usr/lib/llvm-3.5/lib)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Boost
|
|
||||||
find_package(Boost REQUIRED)
|
|
||||||
|
|
||||||
add_subdirectory(libevmjit)
|
add_subdirectory(libevmjit)
|
||||||
|
|
||||||
if(EVMJIT_CPP)
|
if(EVMJIT_CPP)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
set(TARGET_NAME evmjit-cpp)
|
set(TARGET_NAME evmjit-cpp)
|
||||||
|
|
||||||
|
# Boost
|
||||||
|
find_package(Boost REQUIRED)
|
||||||
|
|
||||||
set(SOURCES
|
set(SOURCES
|
||||||
Env.cpp
|
Env.cpp
|
||||||
JitVM.cpp JitVM.h
|
JitVM.cpp JitVM.h
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@ add_library(${TARGET_NAME} SHARED ${SOURCES} ${HEADERS})
|
||||||
set_property(TARGET ${TARGET_NAME} PROPERTY FOLDER "libs")
|
set_property(TARGET ${TARGET_NAME} PROPERTY FOLDER "libs")
|
||||||
|
|
||||||
include_directories(${LLVM_INCLUDE_DIRS})
|
include_directories(${LLVM_INCLUDE_DIRS})
|
||||||
include_directories(${Boost_INCLUDE_DIRS})
|
|
||||||
|
|
||||||
target_link_libraries(${TARGET_NAME} PRIVATE ${LLVM_LIBS})
|
target_link_libraries(${TARGET_NAME} PRIVATE ${LLVM_LIBS})
|
||||||
target_link_libraries(${TARGET_NAME} PRIVATE gmp)
|
target_link_libraries(${TARGET_NAME} PRIVATE gmp)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <boost/multiprecision/cpp_int.hpp>
|
#include <tuple>
|
||||||
|
|
||||||
namespace dev
|
namespace dev
|
||||||
{
|
{
|
||||||
|
|
@ -13,8 +13,6 @@ namespace jit
|
||||||
using byte = uint8_t;
|
using byte = uint8_t;
|
||||||
using bytes = std::vector<byte>;
|
using bytes = std::vector<byte>;
|
||||||
using bytes_ref = std::tuple<byte const*, size_t>;
|
using bytes_ref = std::tuple<byte const*, size_t>;
|
||||||
using u256 = boost::multiprecision::uint256_t;
|
|
||||||
using bigint = boost::multiprecision::cpp_int;
|
|
||||||
|
|
||||||
struct NoteChannel {}; // FIXME: Use some log library?
|
struct NoteChannel {}; // FIXME: Use some log library?
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
#include <llvm/ADT/PostOrderIterator.h>
|
#include <llvm/ADT/PostOrderIterator.h>
|
||||||
#include <llvm/IR/CFG.h>
|
#include <llvm/IR/CFG.h>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#include "interface.h"
|
#include "interface.h"
|
||||||
#include <cstdio>
|
#include <cstring>
|
||||||
#include "ExecutionEngine.h"
|
#include "ExecutionEngine.h"
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue