summaryrefslogtreecommitdiff
path: root/src/ctor.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-12 15:49:16 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-12 15:59:22 +0100
commitc093758b4688fb5bae2cc7727b6c9b52b824043e (patch)
treef92c206b0fa6366319e17f1c7f375dfeb0ab5f27 /src/ctor.h
parentcc4e14d243f4e7e1ad487d8865c5ffc8423e473d (diff)
Move tools opt to ctor.h and rename tool_chain to toolchain for consistency.
Diffstat (limited to 'src/ctor.h')
-rw-r--r--src/ctor.h22
1 files changed, 22 insertions, 0 deletions
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<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>
+};
+
struct flags
{
std::vector<std::string> cxxflags; // flags for c++ compiler