mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-06-26 19:55:04 +00:00
Update deprecation-warning.cpp (#10619)
Fixed Path Separator Handling for Cross-Platform Support (Windows File Systems)
This commit is contained in:
@ -12,7 +12,7 @@ int main(int argc, char** argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get only the program name from the full path
|
// Get only the program name from the full path
|
||||||
auto pos = filename.find_last_of('/');
|
auto pos = filename.find_last_of("/\\");
|
||||||
if (pos != std::string::npos) {
|
if (pos != std::string::npos) {
|
||||||
filename = filename.substr(pos+1);
|
filename = filename.substr(pos+1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user