summaryrefslogtreecommitdiff
path: root/nix-test/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'nix-test/build.rs')
-rw-r--r--nix-test/build.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/nix-test/build.rs b/nix-test/build.rs
deleted file mode 100644
index 5d1b1bba..00000000
--- a/nix-test/build.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-extern crate gcc;
-
-use std::env;
-
-pub fn main() {
- let target = env::var("TARGET").unwrap();
-
- let os = if target.contains("linux") {
- "LINUX"
- } else if target.contains("darwin") {
- "DARWIN"
- } else {
- "UNKNOWN"
- };
-
- gcc::Build::new()
- .file("src/const.c")
- .file("src/sizes.c")
- .define(os, None)
- .compile("libnixtest.a");
-}