Skip to content

Commit

Permalink
Update xwin to 0.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Sep 7, 2022
1 parent 236b55f commit 310463f
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 34 deletions.
63 changes: 31 additions & 32 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fs-err = "2.7.0"
indicatif = "0.17.0"
path-slash = "0.2.0"
which = "4.2.4"
xwin = { version = "0.2.6", default-features = false }
xwin = { version = "0.2.8", default-features = false }

[features]
# By default we use rustls for TLS
Expand Down
9 changes: 8 additions & 1 deletion src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ impl XWinOptions {
.xwin_variant
.iter()
.fold(0, |acc, var| acc | *var as u32);
let pruned = xwin::prune_pkg_list(&pkg_manifest, arches, variants)?;
let pruned = xwin::prune_pkg_list(&pkg_manifest, arches, variants, false)?;
let op = xwin::Ops::Splat(xwin::SplatConfig {
include_debug_libs: false,
include_debug_symbols: false,
Expand All @@ -252,13 +252,20 @@ impl XWinOptions {
.map(|pay| {
let prefix = match pay.kind {
xwin::PayloadKind::CrtHeaders => "CRT.headers".to_owned(),
xwin::PayloadKind::AtlHeaders => "ATL.headers".to_owned(),
xwin::PayloadKind::CrtLibs => {
format!(
"CRT.libs.{}.{}",
pay.target_arch.map(|ta| ta.as_str()).unwrap_or("all"),
pay.variant.map(|v| v.as_str()).unwrap_or("none")
)
}
xwin::PayloadKind::AtlLibs => {
format!(
"ATL.libs.{}",
pay.target_arch.map(|ta| ta.as_str()).unwrap_or("all"),
)
}
xwin::PayloadKind::SdkHeaders => {
format!(
"SDK.headers.{}.{}",
Expand Down

0 comments on commit 310463f

Please sign in to comment.