Skip to content

Commit 4f5f811

Browse files
popcnt1zaidoon1
authored andcommitted
fix(build): add ROCKSDB_SCHED_GETCPU_PRESENT for Linux build config (#950)
* fix(build): add ROCKSDB_SCHED_GETCPU_PRESENT for Linux build config This change adds a definition for ROCKSDB_SCHED_GETCPU_PRESENT in the Linux-specific section of the build script. This ensures that the RocksDB library is aware of the presence of the sched_getcpu function on Linux systems, potentially optimising CPU scheduling.
1 parent 3ce9d5d commit 4f5f811

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

librocksdb-sys/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ fn build_rocksdb() {
176176
config.define("OS_LINUX", None);
177177
config.define("ROCKSDB_PLATFORM_POSIX", None);
178178
config.define("ROCKSDB_LIB_IO_POSIX", None);
179+
config.define("ROCKSDB_SCHED_GETCPU_PRESENT", None);
179180
} else if target.contains("dragonfly") {
180181
config.define("OS_DRAGONFLYBSD", None);
181182
config.define("ROCKSDB_PLATFORM_POSIX", None);

0 commit comments

Comments
 (0)