summaryrefslogtreecommitdiffhomepage
path: root/Builder.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2024-05-04 14:43:48 +0200
committerRoland Reichwein <mail@reichwein.it>2024-05-04 14:43:48 +0200
commit44479895f325cbbc283553dcb10b29a0af3b480b (patch)
treef29b9da1c782554ec3cef375d7cc771a0d56756e /Builder.cpp
parent45983abe664be648b513202c8c12578c9a85784f (diff)
Added yscan
Diffstat (limited to 'Builder.cpp')
-rw-r--r--Builder.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/Builder.cpp b/Builder.cpp
index 1f6fbb2..58176d4 100644
--- a/Builder.cpp
+++ b/Builder.cpp
@@ -1,5 +1,7 @@
#include "Builder.h"
+#include "file.h"
+
#include <algorithm>
#include <chrono>
#include <cstdlib>
@@ -107,12 +109,6 @@ namespace {
return deps_from_depfile(depfile);
}
- // type of file can be built from dependencies
- bool is_buildable_by_extension(const fs::path& p) {
- fs::path ext{p.extension()};
- return ext.empty() || ext == ".o";
- }
-
std::unordered_map<fs::path, std::vector<fs::path>> get_dependencies(const pt::ptree& ptree) {
std::unordered_map<fs::path, std::vector<fs::path>> dependencies;
dependencies.emplace(get_target(ptree), get_objects(ptree));