-
Notifications
You must be signed in to change notification settings - Fork 11.7k
examples : add compiler version and target to build info #2998
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
Conversation
Why call 'echo' and then strip the newline from its output?
e4fd5ce
to
64c87bf
Compare
…build-info-compiler
When building with cmake I get this:
and #define BUILD_COMPILER ""
#define BUILD_TARGET "unknown" Which I think is from this PR. @cebtenzzre do you know what may cause this? |
I cleared the build directory and reconfigured and the problem disappeared, but I am still a bit confused because I had already cleared it several times before today. |
That can only happen if CMAKE_C_COMPILER is not set. What is your compiler? I'm not a CMake expert, I'm not sure what I should do instead. make has |
My compiler is the
Maybe it was a fluke, I'll see if I can reproduce the issue again, until then please ignore this. |
As suggested by @staviq in #2922 (comment).
I haven't touched dump_non_result_info_yaml, llama-bench.cpp, or server.cpp.
I haven't tested on Windows, and I'm not really sure what kind of useful info I can get out of MSVC besides _MSC_VER.
Example output: