Skip to content

Commit

Permalink
Remove boost::filesystem where it is not needed
Browse files Browse the repository at this point in the history
A two uses in CommonIO remain for the compiler (plus testing/tools use it extensively)
  • Loading branch information
axic committed May 11, 2020
1 parent 5a6c7ad commit c31a93b
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libsolidity/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ if (NOT (${Z3_FOUND} OR ${CVC4_FOUND}))
endif()

add_library(solidity ${sources} ${z3_SRCS} ${cvc4_SRCS})
target_link_libraries(solidity PUBLIC yul evmasm langutil solutil Boost::boost Boost::filesystem Boost::system)
target_link_libraries(solidity PUBLIC yul evmasm langutil solutil Boost::boost Boost::system)

if (${Z3_FOUND})
target_link_libraries(solidity PUBLIC z3::libz3)
Expand Down
1 change: 0 additions & 1 deletion libsolidity/formal/CHCSmtLib2Interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

#include <boost/algorithm/string/join.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/filesystem/operations.hpp>

#include <array>
#include <fstream>
Expand Down
1 change: 0 additions & 1 deletion libsolidity/formal/SMTLib2Interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

#include <boost/algorithm/string/join.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/filesystem/operations.hpp>

#include <array>
#include <fstream>
Expand Down
1 change: 0 additions & 1 deletion libsolutil/CommonIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#pragma once

#include <libsolutil/Common.h>
#include <boost/filesystem.hpp>
#include <sstream>
#include <string>

Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ add_executable(soltest ${sources}
${libsolidity_util_sources}
${yul_phaser_sources}
)
target_link_libraries(soltest PRIVATE libsolc yul solidity yulInterpreter evmasm solutil Boost::boost Boost::program_options Boost::unit_test_framework evmc)
target_link_libraries(soltest PRIVATE libsolc yul solidity yulInterpreter evmasm solutil Boost::boost Boost::filesystem Boost::program_options Boost::unit_test_framework evmc)


# Special compilation flag for Visual Studio (version 2019 at least affected)
Expand Down
2 changes: 1 addition & 1 deletion tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ add_executable(yul-phaser
yulPhaser/SimulationRNG.h
yulPhaser/SimulationRNG.cpp
)
target_link_libraries(yul-phaser PRIVATE solidity Boost::program_options)
target_link_libraries(yul-phaser PRIVATE solidity Boost::filesystem Boost::program_options)

install(TARGETS yul-phaser DESTINATION "${CMAKE_INSTALL_BINDIR}")

0 comments on commit c31a93b

Please sign in to comment.