Skip to content

Commit

Permalink
update rust-gpu build values, don't err if shader dir is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
schell committed Dec 31, 2024
1 parent a1d1d8a commit 3780939
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/renderling-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,11 @@ pub fn generate_linkage() {
"missing file '{}', you must first compile the shaders",
paths.shader_manifest.display()
);
assert!(
paths.linkage_dir.is_dir(),
"missing crates/renderling/src/linkage"
);

if !paths.linkage_dir.is_dir() {
log::info!("creating linkage directory");
std::fs::create_dir_all(&paths.linkage_dir).unwrap();
}

log::debug!("cwd: {:?}", std::env::current_dir().unwrap());

Expand Down
1 change: 1 addition & 0 deletions crates/renderling/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ readme = "../../README.md"
build = "src/build.rs"

[package.metadata.rust-gpu.build]
auto-install-rust-toolchain = true
output-dir = "shaders"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down

0 comments on commit 3780939

Please sign in to comment.