From 5136fd92c2c03fb4417b01d511c41490d7353dfa Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 30 Dec 2024 13:00:18 +0200 Subject: [PATCH] examples : handle "main.exe" deprecation --- examples/deprecation-warning/deprecation-warning.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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());