aboutsummaryrefslogtreecommitdiff
path: root/cli/build.rs
diff options
context:
space:
mode:
authorTill Höppner2016-03-09 16:59:15 +0100
committerTill Höppner2016-03-09 17:01:04 +0100
commiteca90a051b4daebe12a8421c6c4f57d5b5b9fbbd (patch)
tree4af753d758b1349b105d4b79dc2ac740cff28581 /cli/build.rs
parente15f184edc228b991ee87ca39a6a177e6938d9c6 (diff)
downloadilc-eca90a051b4daebe12a8421c6c4f57d5b5b9fbbd.tar.gz
ilc-eca90a051b4daebe12a8421c6c4f57d5b5b9fbbd.tar.xz
ilc-eca90a051b4daebe12a8421c6c4f57d5b5b9fbbd.zip
Allow ARM failure
Diffstat (limited to 'cli/build.rs')
-rw-r--r--cli/build.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/cli/build.rs b/cli/build.rs
new file mode 100644
index 0000000..e83c21a
--- /dev/null
+++ b/cli/build.rs
@@ -0,0 +1,15 @@
+extern crate includedir_codegen;
+
+use std::env;
+
+use includedir_codegen::Compression;
+
+fn main() {
+ let mut cg = includedir_codegen::start("FILES");
+ if env::var("PASSTHROUGH").is_ok() {
+ cg.passthrough();
+ }
+ cg.dir("../templates", Compression::Gzip)
+ .build("data.rs")
+ .unwrap();
+}