cargo-zigbuild icon indicating copy to clipboard operation
cargo-zigbuild copied to clipboard

Compile Cargo project with zig as linker

Results 30 cargo-zigbuild issues
Sort by recently updated
recently updated
newest added

I've discovered that I'm unable to build if the path contains spaces or is on a secondary drive. When I run the following command in the following locations on Windows...

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. Release notes Sourced from actions/upload-artifact's releases. v4.0.0 What's Changed The release of upload-artifact@v4 and download-artifact@v4 are major changes to the backend architecture of Artifacts....

dependencies
github_actions

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4. Release notes Sourced from actions/download-artifact's releases. v4.0.0 What's Changed The release of upload-artifact@v4 and download-artifact@v4 are major changes to the backend architecture of Artifacts....

dependencies
github_actions

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. Release notes Sourced from actions/setup-python's releases. v5.0.0 What's Changed In scope of this release, we update node version runtime from node16 to node20 (actions/setup-python#772)....

dependencies
github_actions

Closes #174 --- Generated summary (powered by Graphite) > # TL;DR > This pull request modifies the CI.yml and zig.rs files to improve error handling and to set the CMake...

Opening this for visibility for other Zigbuild users: https://github.com/ziglang/zig/issues/18009 Encountered this error as part of a GHA: ``` error: failed to run custom build command for `ring v0.16.20` Caused by:...

upstream

``` error: failed to run custom build command for `libz-ng-sys v1.1.9` Caused by: process didn't exit successfully: `D:\a\cargo-zigbuild\cargo-zigbuild\tests\hello-cmake\target\debug\build\libz-ng-sys-a50c75ee0613b6ce\build-script-build_zng` (exit code: 101) --- stdout CMAKE_TOOLCHAIN_FILE_aarch64-unknown-linux-gnu = None CMAKE_TOOLCHAIN_FILE_aarch64_unknown_linux_gnu = Some("C:\\Users\\runneradmin\\AppData\\Local\\cargo-zigbuild\\0.17.1\\cmake\\aarch64-unknown-linux-gnu-toolchain.cmake") CMAKE_GENERATOR_aarch64-unknown-linux-gnu...

bug

error: unsupported linker arg: -exported_symbols_list I understand that zig 0.11.0 errors on unrecognized flags, should unknown flags be hardcoded ? if that's the case I can add it to zig.rs

In [CI](https://github.com/cargo-bins/cargo-quickinstall/actions/runs/5925484217/job/16065002028?pr=225#step:5:520) of https://github.com/cargo-bins/cargo-quickinstall/pull/225 : ``` error: linking with `/home/runner/.cache/cargo-zigbuild/0.17.1/zigcc-aarch64-unknown-linux-gnu.sh` failed: exit status: 1 | = note: LC_ALL="C" PATH="/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/usr/lib/llvm-17/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" VSLANG="1033" "/home/runner/.cache/cargo-zigbuild/0.17.1/zigcc-aarch64-unknown-linux-gnu.sh" "/tmp/rustcyQOQeV/symbols.o" "/tmp/cargo-installYEv6Xb/aarch64-unknown-linux-gnu/release/deps/cargo_quickinstall-f5fa84c441e696c6.cargo_quickinstall.b0e05ecc437846b8-cgu.0.rcgu.o" "-Wl,--as-needed" "-L" "/tmp/cargo-installYEv6Xb/aarch64-unknown-linux-gnu/release/deps" "-L" "/tmp/cargo-installYEv6Xb/release/deps" "-L" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib"...