From: Georgi Gerganov Date: Mon, 30 Dec 2024 11:00:18 +0000 (+0200) Subject: examples : handle "main.exe" deprecation X-Git-Tag: upstream/1.7.4~35 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=5136fd92c2c03fb4417b01d511c41490d7353dfa;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp examples : handle "main.exe" deprecation --- diff --git a/examples/deprecation-warning/deprecation-warning.cpp b/examples/deprecation-warning/deprecation-warning.cpp index 7247f0e0..9cac82fb 100644 --- a/examples/deprecation-warning/deprecation-warning.cpp +++ b/examples/deprecation-warning/deprecation-warning.cpp @@ -24,6 +24,10 @@ int main(int argc, char** argv) { replacement_filename = "whisper-cli"; } + if (filename == "main.exe") { + replacement_filename = "whisper-cli.exe"; + } + fprintf(stdout, "\n"); fprintf(stdout, "WARNING: The binary '%s' is deprecated.\n", filename.c_str()); fprintf(stdout, " Please use '%s' instead.\n", replacement_filename.c_str());