-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.zig
22 lines (17 loc) · 837 Bytes
/
build.zig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const std = @import("std");
pub fn build(b: *std.build.Builder) void {
// Standard release options allow the person running `zig build` to select
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
const mode = b.standardReleaseOptions();
// const openblas_include_dir = "/home/olabian/opt/openblas/include";
// const openblas_lib_dir = "/home/olabian/opt/openblas/lib";
const lib = b.addStaticLibrary("dfdz", "src/main.zig");
lib.setBuildMode(mode);
// lib.linkSystemLibrary("openblas");
lib.linkSystemLibrary("/nix/store/d6aabmvg0avs71shmxjnvln94sprqg4w-openblas-0.3.20/lib");
lib.install();
const main_tests = b.addTest("src/main.zig");
main_tests.setBuildMode(mode);
const test_step = b.step("test", "Run library tests");
test_step.dependOn(&main_tests.step);
}