mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
fix: standard library search paths
Path construction for locating the standard library expects ending slashes.
This commit is contained in:
committed by
Christoffer Lerno
parent
7df5bc0017
commit
e380075852
@@ -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/");
|
||||
|
||||
Reference in New Issue
Block a user