File tree 1 file changed +9
-3
lines changed 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,15 @@ cargo zigbuild --target aarch64-unknown-linux-gnu.2.17
29
29
30
30
## Limitations
31
31
32
- Currently only Linux, macOS and Windows gnu targets are supported,
33
- other target platforms can be added if you can make it work,
34
- pull requests are welcome.
32
+ 1 . Currently only Linux, macOS and Windows gnu targets are supported,
33
+ other target platforms can be added if you can make it work,
34
+ pull requests are welcome.
35
+ 2 . If the ` --target ` argument is the same as the host target,
36
+ for example when compiling from Linux x86\_ 64 to Linux x86\_ 64,
37
+ Cargo by default also uses zig as linker for build dependencies like build scripts and proc-macros
38
+ which might not work (See [ #4 ] ( https://github.com/messense/cargo-zigbuild/issues/4 ) ).
39
+ You need to enable the unstable ` target-applies-to-host ` option and set ` target-applies-to-host = false `
40
+ in cargo configuration file, for example ` .cargo/config.toml ` , to make it work.
35
41
36
42
Known upstream zig issues:
37
43
You can’t perform that action at this time.
0 commit comments