summaryrefslogtreecommitdiff
path: root/src/tools.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-19 14:22:51 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-19 14:22:51 +0100
commit3cbadb8f5c55020ece96fab0fc8f4f51da01888e (patch)
tree8c2bf1a8bd5426c6f99cf91d1811a10f3999a477 /src/tools.h
parent79c11f3dbaad391633c2678e85eeaba267df5ee1 (diff)
Make extension deduction architecture-aware.
Diffstat (limited to 'src/tools.h')
-rw-r--r--src/tools.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools.h b/src/tools.h
index 4fb6302..188d49f 100644
--- a/src/tools.h
+++ b/src/tools.h
@@ -17,6 +17,8 @@ std::ostream& operator<<(std::ostream& stream, const ctor::ld_opt& opt);
std::ostream& operator<<(std::ostream& stream, const ctor::ar_opt& opt);
std::ostream& operator<<(std::ostream& stream, const ctor::asm_opt& opt);
+std::string get_arch(ctor::output_system system);
+ctor::arch get_arch(ctor::output_system system, const std::string& str);
//! Get tool-chain type from compiler path string
ctor::toolchain getToolChain(const std::string& compiler);
@@ -118,4 +120,5 @@ ctor::target_type target_type_from_extension(ctor::toolchain toolchain,
// mingw .exe .lib .dll
std::filesystem::path extension(ctor::toolchain toolchain,
ctor::target_type target_type,
+ ctor::output_system system,
const std::filesystem::path& file);