Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const std = @import("std");

const nets = @embedFile("nets/default.nnue");
// Simple DateTime lib
// https://gist.github.com/WoodyAtHome/3ef50b17f0fa2860ac52b97af12f8d15
// Translated from German to English
Expand Down Expand Up @@ -103,9 +103,9 @@ pub fn build(b: *std.build.Builder) void {

var buf: [64]u8 = undefined;
build_options.addOption([]const u8, "version", dtToString(timestamp2DateTime(std.time.timestamp()), &buf));
build_options.addOption([]const u8, "nnue", nets);
// build_options.addOption([]const u8, "version", "1.4.0");

exe.use_stage1 = true;

exe.linkLibC();
exe.install();
Expand Down
2 changes: 1 addition & 1 deletion src/engine/weights.zig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const std = @import("std");
const arch = @import("build_options");

const NNUE_SOURCE = @embedFile("../../nets/default.nnue");
const NNUE_SOURCE = arch.nnue;

pub const UseResidual = true;

Expand Down