Skip to content

Commit

Permalink
Merge pull request #92 from nilfit/readme
Browse files Browse the repository at this point in the history
Recommend `target.'cfg(..)'.linker` for recent Cargo versions
  • Loading branch information
Urhengulas authored Mar 13, 2024
2 parents 70e18a4 + be16cd8 commit 7d8cf68
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

- [#92] Recommend `target.'cfg(..)'.linker` for recent Cargo versions
- [#90] Configure release-plz
- [#88] Setup release-plz

[#90]: https://github.com/knurling-rs/flip-link/pull/86
[#92]: https://github.com/knurling-rs/flip-link/pull/92
[#90]: https://github.com/knurling-rs/flip-link/pull/90
[#88]: https://github.com/knurling-rs/flip-link/pull/86

## [v0.1.8] - 2024-03-06
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ $ cargo install flip-link

Change the linker from `rust-lld` (the default) to `flip-link` in `.cargo/config.toml`

``` toml
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
# (..)
linker = "flip-link"
```

In versions of Cargo < 1.74, use `rustflags` to change the linker

``` toml
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
# (..)
Expand Down

0 comments on commit 7d8cf68

Please sign in to comment.