Skip to content

Commit 8bf978f

Browse files
authored
chore: macos reqs (#21)
1 parent 9b4c57a commit 8bf978f

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,25 @@
66
[![crates.io version](https://img.shields.io/crates/l/fastpfor.svg)](https://github.com/jjcfrancisco/fastpfor/blob/main/LICENSE-APACHE)
77
[![CI build](https://github.com/jjcfrancisco/fastpfor/actions/workflows/ci.yml/badge.svg)](https://github.com/jjcfrancisco/fastpfor/actions)
88

9-
FastPFOR library written in Rust. Currently in development.
9+
FastPFOR library written in Rust.
10+
11+
## Requirements
12+
13+
# MacOS
14+
To build FastPFor on macOS, you'll need to install SIMDe. Since Homebrew installs packages in /opt/homebrew (for Apple Silicon), you'll also need to explicitly set the include paths.
15+
16+
First, install SIMDe via Homebrew:
17+
```bash
18+
brew install simde
19+
```
20+
Then, ensure the compiler can find the required headers by setting:
21+
```bash
22+
export CXXFLAGS="-I/opt/homebrew/include"
23+
export CFLAGS="-I/opt/homebrew/include"
24+
```
1025

1126
## To do:
12-
- [ ] Rust wrapper for the [C++ library](https://github.com/fast-pack/FastPFor): try [`cxxbridge`](https://github.com/dtolnay/cxx) or [`bindgen`](https://crates.io/crates/bindgen)
27+
- [ x ] Rust wrapper for the [C++ library](https://github.com/fast-pack/FastPFor): try [`cxxbridge`](https://github.com/dtolnay/cxx) or [`bindgen`](https://crates.io/crates/bindgen)
1328

1429
## License
1530

0 commit comments

Comments
 (0)