fix(build): link headers properly

This commit is contained in:
phaneron 2024-07-03 14:53:32 -04:00
parent f8544e9fe4
commit 0e328943c6
2 changed files with 1 additions and 6 deletions

View file

@ -22,10 +22,8 @@ pub fn build(b: *std.Build) void {
const mem = b.dependency("mem", .{});
const bc = b.dependency("bc", .{});
// Publicly link mem
storm.addIncludePath(mem.path("."));
storm.linkLibrary(mem.artifact("mem"));
// Link bc
storm.addIncludePath(bc.path("."));
storm.linkLibrary(bc.artifact("bc"));
// Include squall project directory
@ -130,9 +128,6 @@ pub fn build(b: *std.Build) void {
storm_test_exe.linkLibrary(storm);
storm_test_exe.addIncludePath(mem.path("."));
storm_test_exe.addIncludePath(b.path("."));
storm_test_exe.addCSourceFiles(.{
.files = &.{
"test/big/Ops.cpp",

View file

@ -9,7 +9,7 @@
},
.bc = .{
.url = "https://github.com/thunderbrewhq/bc/archive/refs/heads/master.zip",
.hash = "122095e77b9c52e9a317b57474d9735e82973bb46e011b36107b2a9d55bb62a7704b",
.hash = "12204e26a0419991cf2b34acc8a4685b893d45ac1b553ba41480ad14d1da1cee98ed",
},
.mem = .{
.url = "https://github.com/thunderbrewhq/mem/archive/refs/heads/master.zip",