1
- [ ![ AppVeyor] [ appveyor ]] ( https://ci.appveyor.com/project/japaric/rustc-builtins )
2
- [ ![ Travis] [ travis ]] ( https://travis-ci.org/japaric/rustc-builtins )
1
+ # ` compiler-builtins `
3
2
4
- [ appveyor ] : https://ci.appveyor.com/api/projects/status/mofi55r3px9pv3o7?svg=true
5
- [ travis ] : https://travis-ci.org/japaric/rustc-builtins.svg?branch=master
6
-
7
- # ` rustc-builtins `
3
+ [ ![ Build status] ( https://ci.appveyor.com/api/projects/status/eusnjps5ui3d305p?svg=true )] ( https://ci.appveyor.com/project/rust-lang-libs/compiler-builtins )
4
+ [ ![ Build Status] ( https://travis-ci.org/rust-lang-nursery/compiler-builtins.svg?branch=master )] ( https://travis-ci.org/rust-lang-nursery/compiler-builtins )
8
5
9
6
> [ WIP] Porting ` compiler-rt ` intrinsics to Rust
10
7
@@ -23,15 +20,26 @@ this crate ends up, as long as it's there):
23
20
24
21
``` toml
25
22
[dependencies ]
26
- rustc -builtins = { git = " https://github.com/japaric/ rustc-builtins" }
23
+ compiler -builtins = { git = " https://github.com/rustc-lang-nursery/compiler -builtins" }
27
24
```
28
25
29
- If you still get an "undefined reference to $INTRINSIC" error after that change, that means that we
30
- haven't ported ` $INTRINSIC ` to Rust yet! Please open [ an issue] with the name of the intrinsic and
31
- the LLVM triple (e.g. thumbv7m-none-eabi) of the target you are using. That way we can prioritize
26
+ If you still get an "undefined reference to $INTRINSIC" error after that change,
27
+ that means that we haven't ported ` $INTRINSIC ` to Rust yet! Please open [ an
28
+ issue] with the name of the intrinsic and the LLVM triple (e.g.
29
+ thumbv7m-none-eabi) of the target you are using. That way we can prioritize
32
30
porting that particular intrinsic.
33
31
34
- [ an issue ] : https://github.com/japaric/rustc-builtins/issues
32
+ If you've got a C compiler available for your target then while we implement
33
+ this intrinsic you can temporarily enable a fallback to the actual compiler-rt
34
+ implementation as well for unimplemented intrinsics:
35
+
36
+ ``` toml
37
+ [dependencies .compiler-builtins ]
38
+ git = " https://github.com/rustc-lang-nursery/compiler-builtins"
39
+ features = [" c" ]
40
+ ```
41
+
42
+ [ an issue ] : https://github.com/rust-lang-nursery/compiler-builtins/issues
35
43
36
44
## Contributing
37
45
@@ -45,7 +53,7 @@ porting that particular intrinsic.
45
53
46
54
[ 1 ] : https://github.com/rust-lang/compiler-rt/tree/8598065bd965d9713bfafb6c1e766d63a7b17b89/test/builtins/Unit
47
55
[ 2 ] : https://github.com/rust-lang/compiler-rt/tree/8598065bd965d9713bfafb6c1e766d63a7b17b89/lib/builtins
48
- [ 3 ] : https://travis-ci.org/japaric/rustc -builtins
56
+ [ 3 ] : https://travis-ci.org/rust-lang-nursery/compiler -builtins
49
57
50
58
### Porting Reminders
51
59
0 commit comments