From 7dabda20e11138f2235b12271d569cd3256ebf3a Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Tue, 7 May 2024 19:08:29 +0200 Subject: Recursive build --- file.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'file.cpp') diff --git a/file.cpp b/file.cpp index 9912d29..da00dff 100644 --- a/file.cpp +++ b/file.cpp @@ -22,3 +22,10 @@ bool is_compile_unit_source_by_extension(const fs::path& p) { return compile_unit_source_types.find(ext) != compile_unit_source_types.end(); } +std::filesystem::path simplified_path(const std::filesystem::path& p) +{ + if (p.string().substr(0, 2) == "./") { + return p.string().substr(2); + } + return p; +} -- cgit v1.2.3