mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
build: findLLVM correctly handles system libraries
This commit is contained in:
parent
e0a1466bd8
commit
79c2ceb2d5
@ -128,7 +128,11 @@ fn findLLVM(b: &Builder) -> ?LibraryDep {
|
||||
if (mem.startsWith(u8, lib_arg, "-l")) {
|
||||
%%result.system_libs.append(lib_arg[2..]);
|
||||
} else {
|
||||
%%result.libs.append(lib_arg);
|
||||
if (os.path.isAbsolute(lib_arg)) {
|
||||
%%result.libs.append(lib_arg);
|
||||
} else {
|
||||
%%result.system_libs.append(lib_arg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user