Skip to content

Commit f77ca91

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 69e93de commit f77ca91

15 files changed

+883
-8
lines changed

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]
@@ -17,6 +21,8 @@ gcc_s = { path = "gcc_s" }
1721
compiler-rt = { path = "compiler-rt" }
1822

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

2228
[workspace]

0 commit comments

Comments
 (0)