slang-sys: Rebuild if SLANG_DIR
env changes (#5)
This commit is contained in:
parent
dbe941c55e
commit
4b4f1a93b7
@ -4,6 +4,7 @@ use std::env;
|
|||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
println!("cargo:rerun-if-env-changed=SLANG_DIR");
|
||||||
let slang_dir = env::var("SLANG_DIR").map(PathBuf::from).expect(
|
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.",
|
"Environment variable `SLANG_DIR` should be set to the directory of a Slang installation.",
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user