Browse Source

removed LANGUAGES command line option

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
c14cb82acd
  1. 9
      CMakeLists.txt
  2. 4
      libdevcrypto/TrieDB.cpp
  3. 4
      libethcore/BlockInfo.cpp
  4. 3
      libethcore/ProofOfWork.cpp

9
CMakeLists.txt

@ -15,7 +15,6 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
# Normally, set(...CACHE...) creates cache variables, but does not modify them.
function(createDefaultCacheConfig)
set(HEADLESS OFF CACHE BOOL "Do not compile GUI (AlethZero)")
set(LANGUAGES OFF CACHE BOOL "Limit build to Serpent/LLL tools")
set(VMTRACE OFF CACHE BOOL "VM tracing and run-time checks (useful for cross-implementation VM debugging)")
set(PARANOIA OFF CACHE BOOL "Additional run-time checks")
set(JSONRPC ON CACHE BOOL "Build with jsonprc. default on")
@ -24,10 +23,6 @@ endfunction()
# propagates CMake configuration options to the compiler
function(configureProject)
if (LANGUAGES)
add_definitions(-DETH_LANGUAGES)
endif ()
if (PARANOIA)
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
add_definitions(-DETH_PARANOIA)
@ -89,7 +84,7 @@ cmake_policy(SET CMP0015 NEW)
createDefaultCacheConfig()
configureProject()
message("-- LANGUAGES: ${LANGUAGES}; VMTRACE: ${VMTRACE}; PARANOIA: ${PARANOIA}; HEADLESS: ${HEADLESS}; JSONRPC: ${JSONRPC}")
message("-- VMTRACE: ${VMTRACE}; PARANOIA: ${PARANOIA}; HEADLESS: ${HEADLESS}; JSONRPC: ${JSONRPC}")
# Default TARGET_PLATFORM to "linux".
@ -125,7 +120,6 @@ if (JSONRPC)
add_subdirectory(libweb3jsonrpc)
endif()
if (NOT LANGUAGES)
add_subdirectory(secp256k1)
add_subdirectory(libp2p)
add_subdirectory(libdevcrypto)
@ -159,7 +153,6 @@ if (NOT LANGUAGES)
add_subdirectory(mix)
endif()
endif()
enable_testing()
add_test(NAME alltests WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/test COMMAND testeth)

4
libdevcrypto/TrieDB.cpp

@ -24,9 +24,5 @@
using namespace std;
using namespace dev;
#if !ETH_LANGUAGES
h256 const dev::c_shaNull = sha3(rlp(""));
h256 const dev::EmptyTrie = c_shaNull;
#endif

4
libethcore/BlockInfo.cpp

@ -19,8 +19,6 @@
* @date 2014
*/
#if !ETH_LANGUAGES
#include <libdevcore/Common.h>
#include <libdevcore/RLP.h>
#include <libdevcrypto/TrieDB.h>
@ -197,5 +195,3 @@ void BlockInfo::verifyParent(BlockInfo const& _parent) const
BOOST_THROW_EXCEPTION(InvalidNumber());
}
}
#endif

3
libethcore/ProofOfWork.cpp

@ -19,8 +19,6 @@
* @date 2014
*/
#if !ETH_LANGUAGES
#include <boost/detail/endian.hpp>
#include <chrono>
#include <array>
@ -107,4 +105,3 @@ h256 DaggerEvaluator::eval(h256 const& _root, h256 const& _nonce)
}
}
#endif

Loading…
Cancel
Save