Skip to content

Commit

Permalink
Add neon in target-feature to resolve a dependency issue
Browse files Browse the repository at this point in the history
This commit would resolve the below issue in CI, which was
caused by `half` crate's version update.

```
(in plat/fvp)
$ cargo build
...
error: register class `vreg` requires the `neon` target feature
   --> /home/changho/.cargo/registry/src/index.crates.io-6f17d22bba15001f/half-2.3.1/src/binary16/arch/aarch64.rs:171:9
    |
171 |         in(vreg) a,
    |         ^^^^^^^^^^

error: register class `vreg` requires the `neon` target feature
   --> /home/changho/.cargo/registry/src/index.crates.io-6f17d22bba15001f/half-2.3.1/src/binary16/arch/aarch64.rs:172:9
    |
172 |         in(vreg) b,
    |         ^^^^^^^^^^

error: could not compile `half` (lib) due to 32 previous errors
```

Signed-off-by: Changho Choi <[email protected]>
  • Loading branch information
zpzigi754 committed Jan 30, 2024
1 parent 34e8aec commit 2dc13c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plat/fvp/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ target = "aarch64-unknown-none-softfloat"

[target.aarch64-unknown-none-softfloat]
rustflags = [
"-C", "link-args=-Tplat/fvp/memory.x",
"-C", "link-args=-Tplat/fvp/memory.x",
"-C", "target-feature=+neon",
]

0 comments on commit 2dc13c7

Please sign in to comment.