mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Remove ghc::filesystem submodule, switch to std::filesystem
This commit is contained in:
parent
a843521e78
commit
770bc0491e
13 changed files with 38 additions and 69 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "zeek/ScannedFile.h"
|
||||
|
||||
#include <cerrno>
|
||||
#include <filesystem>
|
||||
|
||||
#include "zeek/DebugLogger.h"
|
||||
#include "zeek/Reporter.h"
|
||||
|
@ -22,7 +23,7 @@ ScannedFile::ScannedFile(int arg_include_level, std::string arg_name, bool arg_s
|
|||
canonical_path = canonical_stdin_path;
|
||||
else if ( ! arg_is_canonical ) {
|
||||
std::error_code ec;
|
||||
auto canon = filesystem::canonical(name, ec);
|
||||
auto canon = std::filesystem::canonical(name, ec);
|
||||
if ( ec )
|
||||
zeek::reporter->FatalError("failed to get canonical path of %s: %s", name.data(), ec.message().c_str());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue