mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 08:02:32 +00:00
17b935325e
See #226 Closes #220
17 lines
418 B
Zig
17 lines
418 B
Zig
const mem = @import("mem.zig");
|
|
const builtin = @import("builtin");
|
|
|
|
pub const linking_libc = linkingLibrary("c");
|
|
|
|
pub fn linkingLibrary(lib_name: []const u8) -> bool {
|
|
// TODO shouldn't need this if
|
|
if (builtin.link_libs.len != 0) {
|
|
for (builtin.link_libs) |link_lib| {
|
|
if (mem.eql(u8, link_lib, lib_name)) {
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|