summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2020-06-22 02:02:33 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2020-06-22 02:42:00 +0200
commitb2ddb9d3dd03c2b096159a1ecab3205151dcee44 (patch)
tree67bca96900fddda578ca658dada6f38f9448fc60
parent871d4725206600e787f7bbc92dcc7b51cc651433 (diff)
build: move the rebuild dependencies to somewhere where they don't seem test specific.
-rw-r--r--build.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/build.rs b/build.rs
index 5d2b9df6..466eadf3 100644
--- a/build.rs
+++ b/build.rs
@@ -42,13 +42,6 @@ mod testgen {
println!("cargo:rerun-if-changed=tests/headers");
- // On behalf of clang_sys, rebuild ourselves if important configuration
- // variables change, to ensure that bindings get rebuilt if the
- // underlying libclang changes.
- println!("cargo:rerun-if-env-changed=LLVM_CONFIG_PATH");
- println!("cargo:rerun-if-env-changed=LIBCLANG_PATH");
- println!("cargo:rerun-if-env-changed=LIBCLANG_STATIC_PATH");
-
for entry in entries {
match entry.path().extension().and_then(OsStr::to_str) {
Some("h") | Some("hpp") => {
@@ -78,4 +71,11 @@ mod testgen {
fn main() {
target::main();
testgen::main();
+
+ // On behalf of clang_sys, rebuild ourselves if important configuration
+ // variables change, to ensure that bindings get rebuilt if the
+ // underlying libclang changes.
+ println!("cargo:rerun-if-env-changed=LLVM_CONFIG_PATH");
+ println!("cargo:rerun-if-env-changed=LIBCLANG_PATH");
+ println!("cargo:rerun-if-env-changed=LIBCLANG_STATIC_PATH");
}