|
1 | 1 | [package]
|
2 | 2 | authors = ["Jorge Aparicio <japaricious@gmail.com>"]
|
3 |
| -build = "build.rs" |
4 | 3 | name = "compiler_builtins"
|
5 | 4 | version = "0.1.0"
|
6 | 5 |
|
7 |
| -[build-dependencies] |
8 |
| -cast = { version = "0.2.2", features = ["x128"], optional = true } |
9 |
| -rand = { version = "0.3.15", optional = true } |
| 6 | +[lib] |
| 7 | +test = false |
10 | 8 |
|
11 |
| -[build-dependencies.cc] |
12 |
| -optional = true |
13 |
| -version = "1.0" |
| 9 | +[build-dependencies] |
| 10 | +cc = { optional = true, version = "1.0" } |
14 | 11 |
|
15 | 12 | [features]
|
| 13 | +default = ["compiler-builtins"] |
| 14 | + |
| 15 | +# Enable compilation of C code in compiler-rt, filling in some more optimized |
| 16 | +# implementations and also filling in unimplemented intrinsics |
16 | 17 | c = ["cc"]
|
| 18 | + |
| 19 | +# Flag this library as the unstable compiler-builtins lib |
17 | 20 | compiler-builtins = []
|
18 |
| -default = ["compiler-builtins"] |
| 21 | + |
| 22 | +# Generate memory-related intrinsics like memcpy |
19 | 23 | mem = []
|
20 |
| -mangled-names = [] |
21 | 24 |
|
22 |
| -# generate tests |
23 |
| -# |
24 |
| -# Note that this is an internal-only feature used in testing, this should not |
25 |
| -# be relied on with crates.io! Enabling this may expose you to breaking |
26 |
| -# changes. |
27 |
| -gen-tests = ["cast", "rand"] |
| 25 | +# Mangle all names so this can be linked in with other versions or other |
| 26 | +# compiler-rt implementations. Also used for testing |
| 27 | +mangled-names = [] |
28 | 28 |
|
29 |
| -[target.'cfg(all(target_arch = "arm", not(any(target_env = "gnu", target_env = "musl")), target_os = "linux"))'.dev-dependencies] |
30 |
| -test = { git = "https://github.com/japaric/utest" } |
31 |
| -utest-cortex-m-qemu = { default-features = false, git = "https://github.com/japaric/utest" } |
32 |
| -utest-macros = { git = "https://github.com/japaric/utest" } |
| 29 | +# Don't generate lang items for i128 intrisnics and such |
| 30 | +no-lang-items = [] |
33 | 31 |
|
34 | 32 | [[example]]
|
35 | 33 | name = "intrinsics"
|
36 | 34 | required-features = ["c", "compiler-builtins"]
|
37 | 35 |
|
38 | 36 | [workspace]
|
| 37 | +members = ["testcrate"] |
0 commit comments