Skip to content

zig env: lib_dir and std_dir are relative paths in stage2, stage3 and stage4 #14439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
perillo opened this issue Jan 24, 2023 · 0 comments
Open
Labels
bug Observed behavior contradicts documented or intended behavior
Milestone

Comments

@perillo
Copy link
Contributor

perillo commented Jan 24, 2023

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 ?

@Vexu Vexu added the bug Observed behavior contradicts documented or intended behavior label Feb 8, 2023
@Vexu Vexu added this to the 0.12.0 milestone Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

2 participants