aboutsummaryrefslogtreecommitdiff
path: root/std/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'std/build.zig')
-rw-r--r--std/build.zig13
1 files changed, 13 insertions, 0 deletions
diff --git a/std/build.zig b/std/build.zig
new file mode 100644
index 0000000000..a21baa387d
--- /dev/null
+++ b/std/build.zig
@@ -0,0 +1,13 @@
+const mem = @import("mem.zig");
+
+pub fn linkingLibrary(lib_name: []const u8) -> bool {
+ // TODO shouldn't need this if
+ if (@compileVar("link_libs").len != 0) {
+ for (@compileVar("link_libs")) |link_lib| {
+ if (mem.eql(u8, link_lib, lib_name)) {
+ return true;
+ }
+ }
+ }
+ return false;
+}