Skip to content

Commit

Permalink
fix: The driver-path cfg option wasn't being picked correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRustifyer committed Aug 10, 2024
1 parent 0edbedb commit 9f6b479
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,21 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.10.2] - 2024 - 08 - 10

### Fixes

- The `driver-path` property from the configuration file wasn't being picked when declared

## [0.10.1] - 2024 - 08 - 10

### Fixes

- GitHub code coverage actions

## [0.10.0] - 2024 - 08 - 07

### Feature
### Features

- **Breaking** - *Targets*: `Executable` and `Tests` toml entries are removed in favour of `[targets.<target_identifier>]` entries.
Each targets allow the user to build *N* independent final products, being these `binaries (executables)` for now, while static
Expand Down
4 changes: 2 additions & 2 deletions zork++/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion zork++/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zork"
version = "0.10.0"
version = "0.10.2"
authors = ["Zero Day Code"]
edition = "2021"
description = "A modern C++ project manager and build system for modern C++"
Expand Down
2 changes: 1 addition & 1 deletion zork++/src/lib/cli/input/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use crate::project_model;
#[derive(Parser, Debug, Default)]
#[command(name = "Zork++")]
#[command(author = "Zero Day Code")]
#[command(version = "0.10.0")]
#[command(version = "0.10.2")]
#[command(
about = "Zork++ is a build system for modern C++ projects",
long_about = "Zork++ is a project of Zero Day Code. Find us: https://github.com/zerodaycode/Zork"
Expand Down
8 changes: 4 additions & 4 deletions zork++/src/lib/utils/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ fn assemble_compiler_model<'a>(

CompilerModel {
cpp_compiler: config.cpp_compiler.into(),
driver_path: if let Some(driver_path) = cli_args.driver_path.as_ref() {
Cow::Borrowed(driver_path)
driver_path: Cow::Borrowed(if let Some(driver_path) = cli_args.driver_path.as_ref() {
driver_path
} else {
Cow::Owned(cli_args.driver_path.clone().unwrap_or_default())
},
config.driver_path.unwrap_or_default()
}),
cpp_standard: config.cpp_standard.clone().into(),
std_lib: config.std_lib.clone().map(|lib| lib.into()),
extra_args,
Expand Down

0 comments on commit 9f6b479

Please sign in to comment.