Skip to content

Commit 1d18f38

Browse files
authored
Auto merge of #104 - alexcrichton:more-readme-updates, r=japaric
More readme updates
2 parents 0b53393 + 20c1077 commit 1d18f38

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

README.md

+20-12
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
[![AppVeyor][appveyor]](https://ci.appveyor.com/project/japaric/rustc-builtins)
2-
[![Travis][travis]](https://travis-ci.org/japaric/rustc-builtins)
1+
# `compiler-builtins`
32

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)
85

96
> [WIP] Porting `compiler-rt` intrinsics to Rust
107
@@ -23,15 +20,26 @@ this crate ends up, as long as it's there):
2320

2421
``` toml
2522
[dependencies]
26-
rustc-builtins = { git = "https://github.com/japaric/rustc-builtins" }
23+
compiler-builtins = { git = "https://github.com/rustc-lang-nursery/compiler-builtins" }
2724
```
2825

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
3230
porting that particular intrinsic.
3331

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
3543

3644
## Contributing
3745

@@ -45,7 +53,7 @@ porting that particular intrinsic.
4553

4654
[1]: https://github.com/rust-lang/compiler-rt/tree/8598065bd965d9713bfafb6c1e766d63a7b17b89/test/builtins/Unit
4755
[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
4957

5058
### Porting Reminders
5159

0 commit comments

Comments
 (0)