mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow support for older boost and adjust docs
This commit is contained in:
@@ -220,8 +220,12 @@ vector<boost::filesystem::path> LanguageServer::allSolidityFilesFromProject() co
|
||||
|
||||
// We explicitly decided against including all files from include paths but leave the possibility
|
||||
// open for a future PR to enable such a feature to be optionally enabled (default disabled).
|
||||
|
||||
// Note: Newer versions of boost have deprecated symlink_option::recurse
|
||||
#if (BOOST_VERSION < 107200)
|
||||
auto directoryIterator = fs::recursive_directory_iterator(m_fileRepository.basePath(), fs::symlink_option::recurse);
|
||||
#else
|
||||
auto directoryIterator = fs::recursive_directory_iterator(m_fileRepository.basePath(), fs::directory_options::follow_directory_symlink);
|
||||
#endif
|
||||
for (fs::directory_entry const& dirEntry: directoryIterator)
|
||||
if (
|
||||
dirEntry.path().extension() == ".sol" &&
|
||||
|
||||
Reference in New Issue
Block a user