diff --git a/crates/cargo-gpu/src/build.rs b/crates/cargo-gpu/src/build.rs index 0f7bf68..fce6e36 100644 --- a/crates/cargo-gpu/src/build.rs +++ b/crates/cargo-gpu/src/build.rs @@ -38,7 +38,9 @@ impl Build { // Ensure the shader output dir exists log::debug!("ensuring output-dir '{}' exists", self.output_dir.display()); std::fs::create_dir_all(&self.output_dir)?; - self.output_dir = self.output_dir.canonicalize()?; + let canonicalized = self.output_dir.canonicalize()?; + log::debug!("canonicalized output dir: {canonicalized:?}"); + self.output_dir = canonicalized; // Ensure the shader crate exists self.install.shader_crate = self.install.shader_crate.canonicalize()?; diff --git a/crates/cargo-gpu/src/toml.rs b/crates/cargo-gpu/src/toml.rs index 69a5f53..8010afb 100644 --- a/crates/cargo-gpu/src/toml.rs +++ b/crates/cargo-gpu/src/toml.rs @@ -117,12 +117,6 @@ impl Toml { command: Command::Build(mut build), } = Cli::parse_from(parameters) { - // Ensure that the output directory is relative to the toml file - if build.output_dir.is_relative() { - let dir = path.parent().context("no path parent")?; - build.output_dir = dir.join(build.output_dir); - } - log::debug!("build: {build:?}"); build.run()?; } else {