[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Change how build environment variable is set


It appears that some older versions of the Rust compiler do not like the
double colon syntax when setting environment variables for the build
process. Until the latest cargo release will only accept the double
colon syntax, use a single colon when setting environment variables in
build.rs.
---
 build.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build.rs b/build.rs
index a22f635..19eff11 100644
--- a/build.rs
+++ b/build.rs
@@ -10,7 +10,7 @@ fn main() {
     )
     .to_string();
     println!(
-        "cargo::rustc-env=DWVSH_BUILD={}",
+        "cargo:rustc-env=DWVSH_BUILD={}",
         build.get(0..7).unwrap_or(&build)
     );
 }
-- 
cheers!~
Rory




Archive administrator: postmaster AT dwarvish DOT org