Skip to content

Commit 72ce2f9

Browse files
committed
rocksdb: include snappy.h
1 parent 480ec16 commit 72ce2f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.zig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,10 @@ fn buildRocksDB(
459459
});
460460

461461
if (enable_snappy) {
462-
libsnappy.linkLibCpp();
463462
librocksdb.linkLibrary(libsnappy);
463+
librocksdb.addIncludePath(snappy_dep.path("."));
464+
465+
libsnappy.linkLibCpp();
464466

465467
const flags = .{
466468
"-std=c++11",
@@ -491,6 +493,7 @@ fn buildRocksDB(
491493
});
492494

493495
libsnappy.addIncludePath(build_version.getOutput().dirname());
496+
librocksdb.addIncludePath(build_version.getOutput().dirname());
494497
}
495498

496499
// platform dependent stuff

0 commit comments

Comments
 (0)