rust-cross / cargo-zigbuild

Compile Cargo project with zig as linker
MIT License
1.43k stars 51 forks source link

Fix the build for zig 0.11.0 #160

Closed haohaolee closed 1 year ago

haohaolee commented 1 year ago

Based on the discussion https://github.com/rust-cross/cargo-zigbuild/issues/158

  1. use linker rust-lld for linux-musl targets
  2. replace -Wl,-Bdynamic with -Wl,-search_paths_first to workaround another linker issue for windows-gnu targets

Closes #156 Closes #158