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
std.zig: search include dir and lib dir from environment variables #13145
Conversation
78a0867
to
48d0fe6
Compare
b7ce9f9
to
55a3917
Compare
55a3917
to
489e14f
Compare
Another thought comes to mind...since this code doesn't apply to Windows, we could just use |
lol at some point i also thought about it but i'm not sure if the implementation is correct, so i just stick with |
Nice work everyone! |
This seems to be broken on Windows because it triggers #8456 for me. Compiling from 5127dae with:
E: Builds fine after reverting only ca1c185 E2: It may be because this line isn't |
@jcmoyer it's strange, i just tried compiling locally from 5127dae with tho following commands:
and it didn't show any error. and my
i assume the only different is the zig version? the result from the ci also shows a successful build. but you might be right, the line you mentioned should be have to say i'm not familiar with the zig code other than the lines i contributed, would like to hear from @andrewrk |
I wonder why the |
i think it's better for us to open a new issue to track this problem |
@jcmoyer ok, just got this tested, and when building in debug mode, Lines 48 to 57 in 5127dae
but that might because it's actually the output from the test phase, where it's tested in debug mode: Lines 73 to 76 in 5127dae
adding the i'll open a new issue for this, and hope contributors could help us look into this problem. |
distro like guix doesn't use FHS, so it relies on envorinment variables (
C_INCLUDE_PATH
,CPLUS_INCLUDE_PATH
andLIBRARY_PATH
) to search for headers and libraries