fix(build): link headers properly

This commit is contained in:
phaneron 2024-07-03 14:51:11 -04:00
parent 937e283e0b
commit 462eadcec5

View file

@ -21,7 +21,6 @@ pub fn build(b: *std.Build) void {
bc.linkLibrary(mem.artifact("mem")); bc.linkLibrary(mem.artifact("mem"));
bc.addIncludePath(b.path(".")); bc.addIncludePath(b.path("."));
bc.addIncludePath(mem.path("."));
bc.addCSourceFiles(.{ bc.addCSourceFiles(.{
.files = &.{ .files = &.{
@ -71,6 +70,7 @@ pub fn build(b: *std.Build) void {
// Add system detection defines // Add system detection defines
system.add_defines(bc_test_exe); system.add_defines(bc_test_exe);
bc_test_exe.linkLibrary(mem);
bc_test_exe.linkLibrary(bc); bc_test_exe.linkLibrary(bc);
bc_test_exe.addIncludePath(b.path(".")); bc_test_exe.addIncludePath(b.path("."));