| @@ -60,7 +60,7 @@ void compile_file_plan::compile(const build_env& env) const { | |||
| fs::path compile_file_plan::get_object_file_path(const build_env& env) const noexcept { | |||
| auto relpath = fs::relative(source.path, source.basis_path); | |||
| auto ret = env.output_root / subdir / relpath; | |||
| auto ret = env.output_root / subdir / relpath; | |||
| ret.replace_filename(relpath.filename().string() + env.toolchain.object_suffix()); | |||
| return ret; | |||
| } | |||
| @@ -375,9 +375,9 @@ struct cli_deps { | |||
| man.dependencies.end()); | |||
| }); | |||
| auto plan = dds::create_deps_build_plan(deps); | |||
| auto tc = tc_filepath.get_toolchain(); | |||
| auto bdir = build_dir.Get(); | |||
| auto plan = dds::create_deps_build_plan(deps); | |||
| auto tc = tc_filepath.get_toolchain(); | |||
| auto bdir = build_dir.Get(); | |||
| dds::build_env env{std::move(tc), bdir}; | |||
| plan.compile_all(env, 6); | |||
| plan.archive_all(env, 6); | |||