From 8a7f76e7a1b404dc7f703d09d724defaee9e4238 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 14 Jan 2023 17:54:23 +0100 Subject: Extend target_type deduction based on filename extension and move to utils. --- src/util.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index c7318aa..45f69d4 100644 --- a/src/util.h +++ b/src/util.h @@ -8,6 +8,8 @@ #include #include +std::string to_lower(const std::string& str); + std::string readFile(const std::string& fileName); std::vector readDeps(const std::string& depFile); ctor::language languageFromExtension(const std::filesystem::path& file); @@ -19,7 +21,4 @@ void append(T& a, const T& b) a.insert(a.end(), b.begin(), b.end()); } -//using cxx_flags = std::vector; -//using c_flags = std::vector; -//using ld_flags= std::vector; -//using asm_flags = std::vector; +ctor::target_type target_type_from_extension(const std::filesystem::path& file); -- cgit v1.2.3