fix linux build

master
Niko PLP 1 year 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 "../rocksdb/include/rocksdb/version.h"
#include <cstring>
#include "c.h" #include "c.h"
static char* CopyString(const std::string& str) { 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") // set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /FC /d2Zi+ /W4 /wd4127 /wd4800 /wd4996 /wd4351 /wd4100 /wd4204 /wd4324")
} else { } else {
if target.contains("x86_64") { if target.contains("x86_64") {
config.flag("-Wstrict-prototypes"); config.flag_if_supported("-Wstrict-prototypes");
} }
//-W -Wextra -Wall -pthread //-W -Wextra -Wall -pthread
//-fno-omit-frame-pointer //-fno-omit-frame-pointer

Loading…
Cancel
Save