]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ggml : add logging for native build options/vars (#2935)
authorDaniel Bevenius <redacted>
Mon, 24 Mar 2025 08:53:38 +0000 (09:53 +0100)
committerGitHub <redacted>
Mon, 24 Mar 2025 08:53:38 +0000 (09:53 +0100)
commitb82ac32a6c6a7c1897d16b3b3e7e1303db71b980
tree0f2fbf5c7bfcf53dcbbb012bdaebf6cf05d2e6a8
parentedf1ee1ef857e97dd807da5857a1154eea7f85c0
ggml : add logging for native build options/vars (#2935)

This commit adds debug level logging for the native build options and
variables to ggml/CMakeLists.txt.

The motivation for this is that it can be useful to see the effective
result of `GGML_NATIVE`, `GGML_NATIVE_DEFAULT`, and `INS_ENB` for a
cmake build. I've found myself adding similar logging a few times now,
so I thought it might be a good idea to add this.

Example output, specifying `-DCMAKE_MESSAGE_LOG_LEVEL=DEBUG` when
running cmake produces the following output:
```console
-- GGML_NATIVE         : OFF
-- GGML_NATIVE_DEFAULT : OFF
-- INS_ENB             : OFF
```
ggml/CMakeLists.txt