diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ae20802..7918af9a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -169,7 +169,7 @@ else() endif() endif() -set(boost_libs filesystem program_options iostreams system) +set(boost_libs program_options iostreams) if (Threads_FOUND) list(APPEND boost_libs thread) endif() diff --git a/bba/CMakeLists.txt b/bba/CMakeLists.txt index e2cba85f..437cd05f 100644 --- a/bba/CMakeLists.txt +++ b/bba/CMakeLists.txt @@ -4,12 +4,10 @@ project(bba CXX) set(CMAKE_CXX_STANDARD 17) find_package(Boost REQUIRED COMPONENTS - program_options - system) + program_options) add_executable(bbasm main.cc) target_link_libraries(bbasm LINK_PRIVATE - ${Boost_PROGRAM_OPTIONS_LIBRARY} - ${Boost_SYSTEM_LIBRARY}) + ${Boost_PROGRAM_OPTIONS_LIBRARY}) export(TARGETS bbasm FILE ${CMAKE_BINARY_DIR}/bba-export.cmake) diff --git a/common/kernel/command.cc b/common/kernel/command.cc index 637561b6..5493173c 100644 --- a/common/kernel/command.cc +++ b/common/kernel/command.cc @@ -28,9 +28,9 @@ #include #include -#include #include #include +#include #include #include #include @@ -276,14 +276,14 @@ bool CommandHandler::parseOptions() bool CommandHandler::executeBeforeContext() { if (vm.count("help") || argc == 1) { - std::cerr << boost::filesystem::path(argv[0]).stem() + std::cerr << std::filesystem::path(argv[0]).stem() << " -- Next Generation Place and Route (Version " GIT_DESCRIBE_STR ")\n"; std::cerr << options << "\n"; return argc != 1; } if (vm.count("version")) { - std::cerr << boost::filesystem::path(argv[0]).stem() + std::cerr << std::filesystem::path(argv[0]).stem() << " -- Next Generation Place and Route (Version " GIT_DESCRIBE_STR ")\n"; return true; } diff --git a/common/kernel/embed.cc b/common/kernel/embed.cc index 5ec2b79a..d4544bf6 100644 --- a/common/kernel/embed.cc +++ b/common/kernel/embed.cc @@ -3,7 +3,7 @@ #define NOMINMAX #include #endif -#include +#include #include #include "embed.h" #include "nextpnr.h" @@ -17,7 +17,7 @@ const void *get_chipdb(const std::string &filename) static std::map files; if (!files.count(filename)) { std::string full_filename = EXTERNAL_CHIPDB_ROOT "/" + filename; - if (boost::filesystem::exists(full_filename)) + if (std::filesystem::exists(full_filename)) files[filename].open(full_filename, boost::iostreams::mapped_file::priv); } if (files.count(filename)) diff --git a/generic/viaduct/fabulous/fabulous.cc b/generic/viaduct/fabulous/fabulous.cc index 6160ff72..07204947 100644 --- a/generic/viaduct/fabulous/fabulous.cc +++ b/generic/viaduct/fabulous/fabulous.cc @@ -36,7 +36,7 @@ #include "pack.h" #include "validity_check.h" -#include +#include NEXTPNR_NAMESPACE_BEGIN @@ -62,7 +62,7 @@ struct FabulousImpl : ViaductAPI ViaductAPI::init(ctx); h.init(ctx); fab_root = get_env_var("FAB_ROOT", ", set it to the fabulous build output or project path"); - if (boost::filesystem::exists(fab_root + "/.FABulous")) + if (std::filesystem::exists(fab_root + "/.FABulous")) is_new_fab = true; else is_new_fab = false; diff --git a/himbaechel/arch.cc b/himbaechel/arch.cc index 69719b9c..1dd42291 100644 --- a/himbaechel/arch.cc +++ b/himbaechel/arch.cc @@ -18,7 +18,6 @@ */ #include "arch.h" -#include #include "archdefs.h" #include "chipdb.h" #include "log.h" @@ -31,6 +30,8 @@ #include "router2.h" #include "util.h" +#include + NEXTPNR_NAMESPACE_BEGIN static constexpr int database_version = 6; @@ -124,7 +125,7 @@ void Arch::load_chipdb(const std::string &path) db_path = proc_share_dirname(); db_path += "himbaechel/"; db_path += path; - boost::filesystem::path p(db_path); + std::filesystem::path p(db_path); db_path = p.make_preferred().string(); } try {