From c093758b4688fb5bae2cc7727b6c9b52b824043e Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 12 Jan 2023 15:49:16 +0100 Subject: Move tools opt to ctor.h and rename tool_chain to toolchain for consistency. --- src/ctor.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/ctor.h') diff --git a/src/ctor.h b/src/ctor.h index 8e0e28e..388ec1b 100644 --- a/src/ctor.h +++ b/src/ctor.h @@ -66,6 +66,28 @@ enum class toolchain clang, }; +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 + library_path, // -L + link, // -l + cpp_std, // -std= + build_shared, // -shared + threads, // -pthread + optimization, // -O + position_independent_code, // -fPIC + position_independent_executable, // -fPIE + custom, // entire option taken verbatim from +}; + struct flags { std::vector cxxflags; // flags for c++ compiler -- cgit v1.2.3