diff options
| author | Fuwn <[email protected]> | 2022-02-21 21:35:19 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-09 00:46:11 -0700 |
| commit | 99f585f95da5fc9a1d775bd1e9053bfadbc9daa3 (patch) | |
| tree | 11f836f716bff31e41cf1eee7351b25d9014b3dc /crates/divina_config/src | |
| parent | fix(divina_compile): update for vs2022 (diff) | |
| download | archived-divina-99f585f95da5fc9a1d775bd1e9053bfadbc9daa3.tar.xz archived-divina-99f585f95da5fc9a1d775bd1e9053bfadbc9daa3.zip | |
feat(divina_compile): allow custom vs path
Diffstat (limited to 'crates/divina_config/src')
| -rw-r--r-- | crates/divina_config/src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/divina_config/src/lib.rs b/crates/divina_config/src/lib.rs index dee15a7..e280f0d 100644 --- a/crates/divina_config/src/lib.rs +++ b/crates/divina_config/src/lib.rs @@ -186,6 +186,7 @@ pub struct Config { pub path: Option<String>, pub arch: Option<Arch>, pub compiler: Option<String>, + pub visual_studio: Option<String>, } impl Config { /// Create a new `Config` @@ -367,6 +368,14 @@ impl Config { (self.compiler), GetRequired::No ); + get_or_none!( + config_table, + "Package", + "visual_studio", + String, + (self.visual_studio), + GetRequired::No + ); } else { get_table!(workspace_table, "Workspace", globals); @@ -419,6 +428,7 @@ impl Default for Config { path: None, arch: None, compiler: None, + visual_studio: None, } } } |