fix: standard library search paths

Path construction for locating the standard library expects ending
slashes.
This commit is contained in:
Pierre-Nicolas Clauss
2023-10-19 12:54:35 +02:00
committed by Christoffer Lerno
parent 7df5bc0017
commit e380075852

View File

@@ -381,15 +381,15 @@ const char *find_lib_dir(void)
path[strlen_path - 1] = '\0';
}
const char *lib_path = NULL;
if ((lib_path = lib_find(path, "/../lib/c3"))) goto DONE;
if ((lib_path = lib_find(path, "/../lib/c3/"))) goto DONE;
if ((lib_path = lib_find(path, "/../lib/"))) goto DONE;
if ((lib_path = lib_find(path, "/lib/c3"))) goto DONE;
if ((lib_path = lib_find(path, "/lib/c3/"))) goto DONE;
if ((lib_path = lib_find(path, "/lib/"))) goto DONE;
if ((lib_path = lib_find(path, "/c3"))) goto DONE;
if ((lib_path = lib_find(path, "/c3/"))) goto DONE;
if ((lib_path = lib_find(path, "/"))) goto DONE;
if ((lib_path = lib_find(path, "/../c3"))) goto DONE;
if ((lib_path = lib_find(path, "/../c3/"))) goto DONE;
if ((lib_path = lib_find(path, "/../"))) goto DONE;
if ((lib_path = lib_find(path, "/../../lib/c3"))) goto DONE;
if ((lib_path = lib_find(path, "/../../lib/c3/"))) goto DONE;
if ((lib_path = lib_find(path, "/../../lib/"))) goto DONE;
DEBUG_LOG("Could not find the standard library /lib/std/");