fix linux build

master
Niko PLP 11 months ago
parent 520e09b1ad
commit 0856ea9b1f
  1. 2
      librocksdb-sys/api/c.cc
  2. 2
      librocksdb-sys/build.rs

@ -1,5 +1,5 @@
#include "../rocksdb/include/rocksdb/version.h"
#include <cstring>
#include "c.h"
static char* CopyString(const std::string& str) {

@ -266,7 +266,7 @@ fn build_rocksdb() {
// set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /FC /d2Zi+ /W4 /wd4127 /wd4800 /wd4996 /wd4351 /wd4100 /wd4204 /wd4324")
} else {
if target.contains("x86_64") {
config.flag("-Wstrict-prototypes");
config.flag_if_supported("-Wstrict-prototypes");
}
//-W -Wextra -Wall -pthread
//-fno-omit-frame-pointer

Loading…
Cancel
Save