Skip to content

Commit 310aaa9

Browse files
author
Jorge Aparicio
committed
add an opt-in cargo feature to build intrinsics from compiler-rt source
closes #63 cc #66
1 parent c56a3f8 commit 310aaa9

File tree

7 files changed

+754
-2
lines changed

7 files changed

+754
-2
lines changed

.gitmodules

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "compiler-rt"]
2+
path = compiler-rt
3+
url = git://github.com/rust-lang/compiler-rt.git
4+
branch = rust-llvm-2016-07-18

Cargo.toml

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ build = "build.rs"
44
name = "rustc_builtins"
55
version = "0.1.0"
66

7+
[build-dependencies]
8+
gcc = "0.3.35"
9+
rustc-cfg = "0.1.2"
10+
711
[dependencies]
812

913
[dependencies.rlibc]
@@ -18,6 +22,8 @@ rand = "0.3.14"
1822
path = "gcc_s"
1923

2024
[features]
25+
# Build the missing intrinsics from compiler-rt C source code
26+
c = []
2127
weak = ["rlibc/weak"]
2228

2329
[workspace]

0 commit comments

Comments
 (0)