mirror of
https://github.com/italicsjenga/valence.git
synced 2024-12-23 22:41:30 +11:00
Fix change detection bug in build script
This commit is contained in:
parent
d4d169d130
commit
d61c3f1f6f
|
@ -10,16 +10,14 @@ mod entity;
|
|||
mod entity_event;
|
||||
|
||||
pub fn main() -> anyhow::Result<()> {
|
||||
println!("cargo:rerun-if-changed=extracted/");
|
||||
|
||||
let generators = [
|
||||
(entity::build as fn() -> _, "entity.rs"),
|
||||
(entity_event::build, "entity_event.rs"),
|
||||
(block::build, "block.rs"),
|
||||
];
|
||||
|
||||
for (_, file_name) in generators {
|
||||
println!("cargo:rerun-if-changed=extracted/{file_name}");
|
||||
}
|
||||
|
||||
let out_dir = env::var_os("OUT_DIR").context("can't get OUT_DIR env var")?;
|
||||
|
||||
for (g, file_name) in generators {
|
||||
|
|
Loading…
Reference in a new issue