From b2a23c81dec5876ef9d6feb6b3a88f022d72cf88 Mon Sep 17 00:00:00 2001 From: Igor Matuszewski Date: Mon, 27 Nov 2017 03:14:15 +0100 Subject: [PATCH] Don't rerun build script unnecessarily The only thing that is used by the SM build is the jsglue.cpp file, so rerun build script only when it's changed. --- build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/build.rs b/build.rs index e37e001df..960c05372 100644 --- a/build.rs +++ b/build.rs @@ -8,4 +8,5 @@ fn main() { let dst = cmake::Config::new(".").build(); println!("cargo:rustc-link-search=native={}/lib", dst.display()); println!("cargo:rustc-link-lib=static=jsglue"); + println!("cargo:rerun-if-changed=src/jsglue.cpp"); }