diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-12 15:49:16 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-12 15:59:22 +0100 |
commit | c093758b4688fb5bae2cc7727b6c9b52b824043e (patch) | |
tree | f92c206b0fa6366319e17f1c7f375dfeb0ab5f27 /src/tools.h | |
parent | cc4e14d243f4e7e1ad487d8865c5ffc8423e473d (diff) |
Move tools opt to ctor.h and rename tool_chain to toolchain for consistency.
Diffstat (limited to 'src/tools.h')
-rw-r--r-- | src/tools.h | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/src/tools.h b/src/tools.h index bedb708..e6c2264 100644 --- a/src/tools.h +++ b/src/tools.h @@ -8,28 +8,6 @@ #include "ctor.h" -enum class opt -{ - // gcc/clang - output, // -o - debug, // -g - strip, // -s - warn_all, // -Wall - warnings_as_errors, // -Werror - generate_dep_tree, // -MMD - no_link, // -c - include_path, // -I<arg> - library_path, // -L<arg> - link, // -l<arg> - cpp_std, // -std=<arg> - build_shared, // -shared - threads, // -pthread - optimization, // -O<arg> - position_independent_code, // -fPIC - position_independent_executable, // -fPIE - custom, // entire option taken verbatim from <arg> -}; - //! Get tool-chain type from compiler path string ctor::toolchain getToolChain(const std::string& compiler); @@ -39,11 +17,11 @@ ctor::toolchain getToolChain(ctor::output_system system); //! Get tool argument(s) for specific option type matching the supplied //! tool-chain std::vector<std::string> getOption(ctor::toolchain toolchain, - opt option, + ctor::opt option, const std::string& arg = {}); //! Get opt enum value and argument from string, //! ie. { opt::InludePath, "foo/bar" } from "-Ifoo/bar" //! Returns { opt::Custom, flag } if unknown. -std::pair<opt, std::string> getOption(const std::string& flag, - ctor::toolchain toolchain = ctor::toolchain::gcc); +std::pair<ctor::opt, std::string> getOption(const std::string& flag, + ctor::toolchain toolchain = ctor::toolchain::gcc); |