From 5428810d2cec5be27ad7ab647411e0f9208df4e5 Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 9 Feb 2016 23:52:57 -0800 Subject: [PATCH] Add llvm dependencies --- Cargo.lock | 85 ++++++++++++++++++++++++++++++++++++++++++++++ src/compilation.rs | 5 +++ 2 files changed, 90 insertions(+) create mode 100644 Cargo.lock create mode 100644 src/compilation.rs diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..48cb644 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,85 @@ +[root] +name = "null_only_language" +version = "0.1.0" +dependencies = [ + "iron_llvm 0.0.1 (git+https://github.com/jauhien/iron-llvm.git)", + "llvm-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "simplerepl 0.1.0", +] + +[[package]] +name = "advapi32-sys" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "bitflags" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "cmake" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "gcc 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "gcc" +version = "0.3.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "advapi32-sys 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "iron_llvm" +version = "0.0.1" +source = "git+https://github.com/jauhien/iron-llvm.git#401fbb93d070afc0c47e4a567cb193a3a88a7352" +dependencies = [ + "cmake 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", + "llvm-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "libc" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "llvm-sys" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "bitflags 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", + "gcc 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", + "semver 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "semver" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "simplerepl" +version = "0.1.0" + +[[package]] +name = "winapi" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "winapi-build" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + diff --git a/src/compilation.rs b/src/compilation.rs new file mode 100644 index 0000000..0933868 --- /dev/null +++ b/src/compilation.rs @@ -0,0 +1,5 @@ +extern crate llvm_sys; +extern crate iron_llvm; + +use std::collections::HashMap; +use llvm_sys::prelude::LLVMValueRef;