summaryrefslogtreecommitdiff
path: root/src/rebuild.cc
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/rebuild.cc
parentcc4e14d243f4e7e1ad487d8865c5ffc8423e473d (diff)
Move tools opt to ctor.h and rename tool_chain to toolchain for consistency.
Diffstat (limited to 'src/rebuild.cc')
-rw-r--r--src/rebuild.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rebuild.cc b/src/rebuild.cc
index 0d610b5..dec7119 100644
--- a/src/rebuild.cc
+++ b/src/rebuild.cc
@@ -162,27 +162,27 @@ bool recompileCheck(const ctor::settings& global_settings, int argc, char* argv[
config.name = "ctor";
config.system = ctor::output_system::build;
- auto tool_chain = getToolChain(config.system);
+ auto toolchain = getToolChain(config.system);
append(config.flags.cxxflags,
- getOption(tool_chain, opt::optimization, "3"));
+ getOption(toolchain, ctor::opt::optimization, "3"));
append(config.flags.cxxflags,
- getOption(tool_chain, opt::cpp_std, "c++20"));
+ getOption(toolchain, ctor::opt::cpp_std, "c++20"));
const auto& c = ctor::get_configuration();
if(c.has(ctor::cfg::ctor_includedir))
{
append(config.flags.cxxflags,
- getOption(tool_chain, opt::include_path,
+ getOption(toolchain, ctor::opt::include_path,
c.get(ctor::cfg::ctor_includedir)));
}
if(c.has(ctor::cfg::ctor_libdir))
{
append(config.flags.ldflags,
- getOption(tool_chain, opt::library_path,
+ getOption(toolchain, ctor::opt::library_path,
c.get(ctor::cfg::ctor_libdir)));
}
- append(config.flags.ldflags, getOption(tool_chain, opt::link, "ctor"));
- append(config.flags.ldflags, getOption(tool_chain, opt::threads));
+ append(config.flags.ldflags, getOption(toolchain, ctor::opt::link, "ctor"));
+ append(config.flags.ldflags, getOption(toolchain, ctor::opt::threads));
ctor::settings settings{global_settings};
settings.verbose = -1; // Make check completely silent.