I built the compiler following the newly updated https://github.com/ziglang/zig/wiki/Contributing.
Unlike the zig compiler from https://ziglang.org/download/, lib_dir and std_dir are always relative paths.
$ ~/src/contrib/zig/github.com/perillo/zig/build/stage4/bin/zig env
{
"zig_exe": "/home/manlio/src/contrib/zig/github.com/perillo/zig/build/stage4/bin/zig",
"lib_dir": "src/contrib/zig/github.com/perillo/zig/lib",
"std_dir": "src/contrib/zig/github.com/perillo/zig/lib/std",
"global_cache_dir": "/home/manlio/.cache/zig",
"version": "0.11.0-dev.6172+59d9afcb5",
"target": "x86_64-linux.6.1.7...6.1.7-gnu.2.36"
}
Maybe the problem is caused by DZIG_NO_LIB=ON and -Dno-lib ?
I built the compiler following the newly updated https://github.com/ziglang/zig/wiki/Contributing.
Unlike the zig compiler from https://ziglang.org/download/,
lib_dirandstd_dirare always relative paths.$ ~/src/contrib/zig/github.com/perillo/zig/build/stage4/bin/zig env{ "zig_exe": "/home/manlio/src/contrib/zig/github.com/perillo/zig/build/stage4/bin/zig", "lib_dir": "src/contrib/zig/github.com/perillo/zig/lib", "std_dir": "src/contrib/zig/github.com/perillo/zig/lib/std", "global_cache_dir": "/home/manlio/.cache/zig", "version": "0.11.0-dev.6172+59d9afcb5", "target": "x86_64-linux.6.1.7...6.1.7-gnu.2.36" }Maybe the problem is caused by
DZIG_NO_LIB=ONand-Dno-lib?