commit c8302a5a0e01268b4655983fcfe5267b86f98036 (tree) parent 3cbc244e982da2189acfe1de9d60b478d2e60de4 Author: Andrew Kelley <superjoe30@gmail.com> Date: Sat, 23 Dec 2017 21:19:48 -0500 build: findLLVM correctly handles system libraries Diffstat:
| M | build.zig | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/build.zig b/build.zig @@ -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); + } } } }