From 4b4f1a93b7979965cb4d330257583daa6761e041 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sat, 30 Nov 2024 17:59:21 +0700 Subject: [PATCH] slang-sys: Rebuild if `SLANG_DIR` env changes (#5) --- slang-sys/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/slang-sys/build.rs b/slang-sys/build.rs index a232e2b..3c27eb5 100644 --- a/slang-sys/build.rs +++ b/slang-sys/build.rs @@ -4,6 +4,7 @@ use std::env; use std::path::{Path, PathBuf}; fn main() { + println!("cargo:rerun-if-env-changed=SLANG_DIR"); let slang_dir = env::var("SLANG_DIR").map(PathBuf::from).expect( "Environment variable `SLANG_DIR` should be set to the directory of a Slang installation.", );