diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-14 17:54:23 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-14 18:01:12 +0100 |
commit | 8a7f76e7a1b404dc7f703d09d724defaee9e4238 (patch) | |
tree | 6bafc5ca77048bb5ab2acf4089c38be7e32e42bd /src/util.h | |
parent | ca439c62d35d587c90230894ec0d1b002ba8c639 (diff) |
Extend target_type deduction based on filename extension and move to utils.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -8,6 +8,8 @@ #include <string> #include <filesystem> +std::string to_lower(const std::string& str); + std::string readFile(const std::string& fileName); std::vector<std::string> 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<ctor::cxx_flag>; -//using c_flags = std::vector<std::string>; -//using ld_flags= std::vector<std::string>; -//using asm_flags = std::vector<std::string>; +ctor::target_type target_type_from_extension(const std::filesystem::path& file); |