You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,24 @@ a compatible `configure` script + `make`.
13
13
It is based on [cmake-rs](https://github.com/alexcrichton/cmake-rs) and
14
14
the API tries to be as similar as possible to it.
15
15
16
+
## Cross compiling
17
+
18
+
### Emscripten
16
19
For Emscripten targets like "wasm32-unknown-emscripten", `configure` and
17
20
`make` invocations are passed as arguments to `emconfigure` and `emmake`
18
21
respectively as described in the [Emscripten docs](https://emscripten.org/docs/compiling/Building-Projects.html#integrating-with-a-build-system).
19
22
23
+
### Custom LLVM on macOS
24
+
Make sure to set the env to `CC=clang-{version}` and that the compiler is in the `PATH`. If you are using [install-llvm-action](https://github.com/KyleMayes/install-llvm-action),
25
+
make sure to set [`env: true`](https://github.com/KyleMayes/install-llvm-action#env).
26
+
27
+
### Other compilers
28
+
Keep in mind that we rely on `cc-rs` heuristics to select the C and C++ compilers. Some may be missing on your system, please make sure to set
29
+
the [enviroment variables](https://github.com/rust-lang/cc-rs#external-configuration-via-environment-variables) to select the correct compiler if
30
+
the heuristics fail (e.g. `musl-gcc` might not exist while `x86_64-linux-musl-gcc` does).
0 commit comments