Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
schell committed Feb 11, 2025
1 parent 2179434 commit 4493eda
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/cargo-gpu/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pub struct Build {

impl Build {
/// Entrypoint
#[expect(clippy::too_many_lines, reason = "these lines are fine")]
pub fn run(&mut self) -> anyhow::Result<()> {
let spirv_builder_cli_path = self.install.run()?;

Expand Down Expand Up @@ -102,7 +103,13 @@ impl Build {
.file_name()
.context("Couldn't parse file name from shader module path")?,
);
log::debug!("copying {} to {}", filepath.display(), path.display());
std::fs::copy(&filepath, &path)?;
log::debug!(
"linkage of {} relative to {}",
path.display(),
self.install.spirv_install.shader_crate.display()
);
let path_relative_to_shader_crate = path
.relative_to(&self.install.spirv_install.shader_crate)?
.to_path("");
Expand Down

0 comments on commit 4493eda

Please sign in to comment.