about summary refs log tree commit diff
path: root/src/libflate
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-01-21 15:21:13 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-02-11 11:12:32 -0800
commit4da4970767ae8fc2e3b6d0c280312bb0f4efeed6 (patch)
tree1c6ad1e61abbdd59f0bd27a4fd849801b5b296b4 /src/libflate
parent2581b141473f8333728c8dc330a31dc2373dc0e6 (diff)
bootstrap: Add build scripts for crates
This commits adds build scripts to the necessary Rust crates for all the native
dependencies. This is currently a duplication of the support found in mk/rt.mk
and is my best effort at representing the logic twice, but there may be some
unfortunate-and-inevitable divergence.

As a summary:

* alloc_jemalloc - build script to compile jemallocal
* flate - build script to compile miniz.c
* rustc_llvm - build script to run llvm-config and learn about how to link it.
  Note that this crucially (and will not ever) compile LLVM as that would take
  far too long.
* rustdoc - build script to compile hoedown
* std - script to determine lots of libraries/linkages as well as compile
  libbacktrace
Diffstat (limited to 'src/libflate')
-rw-r--r--src/libflate/build.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libflate/build.rs b/src/libflate/build.rs
new file mode 100644
index 00000000000..12016980a2c
--- /dev/null
+++ b/src/libflate/build.rs
@@ -0,0 +1,17 @@
+// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+extern crate gcc;
+
+fn main() {
+    gcc::Config::new()
+        .file("../rt/miniz.c")
+        .compile("libminiz.a");
+}