]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
examples : handle "main.exe" deprecation
authorGeorgi Gerganov <redacted>
Mon, 30 Dec 2024 11:00:18 +0000 (13:00 +0200)
committerGeorgi Gerganov <redacted>
Mon, 30 Dec 2024 11:00:18 +0000 (13:00 +0200)
examples/deprecation-warning/deprecation-warning.cpp

index 7247f0e01a5eba89f9dfdaa925ce17fe4ba55f8a..9cac82fb425ee8c64f19a54fbdf7241a42d47136 100644 (file)
@@ -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());