#!/bin/sh zig c++ -target x86_64-windows-gnu $@ output: # command-line-arguments warning: unsupported linker arg: --compress-debug-sections=zlib-gnu It produces main.exe but when run it segfaults in runtime.rt0_go() (called from main()). This is probably an issue with the go ...
Xmake 版本 xmake v2.8.8+HEAD.d8e248255 操作系统版本和架构 Windows10 描述问题 当 xmake 运行于 Windows 上时,可能会为"可执行文件"添加.exe后缀,当“可执行文件”是zig cc时,将组合成zig cc.exe,进而产生问题。目前已知存在问题的场景有 生成 compile_command.json
A consequence of supporting cross-compile is that you can not depend on system libraries and toolchains! Thus the only choice is for the Zig compiler to include everything necessary to compile for all Linux, macOS, and Windows variants. A Small Rant If you don't like spicy rants I suggest...
const Compile = std.Build.Step.Compile; const ConfigHeader = std.Build.Step.ConfigHeader; const Mode = std.builtin.Mode; const CrossTarget = std.zig.CrossTarget; const Maker = struct { builder: *std.build.Builder, target: CrossTarget, ...
Problem: When working on Windows aspects of rustup, I like to use cargo-zigbuild to check the Windows build locally. However, since switching rustup to aws-lc-rs (currently at 1.8.1) I am unable to build rustup with cargo-zigbuild, even ...
Steps to Reproduce and Observed Behavior Create a go sourcefile that uses cgo. For example: packagemainimport"C"import"fmt"funcmain() {fmt.Println(C.int(10)) } Create a go.mod file withgo mod init test Try to crosscompile this using go build and zig. For example to crosscompile from...
Node.js native addon build and cross-compile library using Zig zig-buildprovides an interface for building native C/C++ Node-API addons or any native code. Unlikenode-gypandcmake-js, it is not a wrapper around a build system and directly calls the compiler. It doesn't depend on the sys...
Cross Compile Convenient Convenient Learning Curve Intermediate Easy Community Resources Growing Rich Summary In conclusion, I am not currently inclined to choose Zig as my primary language for offensive purposes. I've also explored alternative languages like Vlang, but I haven't initiated practical exp...
💻Build one codebase and get native UI on Windows, Linux and Web windowslinuxguiuicross-platformzigcross-platform-guiuser-interfacegui-libraryziglangzig-package UpdatedApr 19, 2025 Zig Compile Cargo project with zig as linker zigcross-compilecargo-subcommand ...
.github CI: linux->windows cross compile (#683) Aug 25, 2024 experiments Merge branch 'main' into zig-0.14.0 Sep 22, 2024 libs Zig 0.14.0-dev.1550+4fba7336a fixups Sep 30, 2024 samples Merge branch 'main' into zig-0.14.0 Sep 30, 2024 .gitattributes [Breaking] Fold zwin32, zx...