|
|
@ -14,7 +14,6 @@ rocksdb_compiler_flags = [ |
|
|
|
"-DROCKSDB_RANGESYNC_PRESENT", |
|
|
|
"-DROCKSDB_RANGESYNC_PRESENT", |
|
|
|
"-DROCKSDB_SCHED_GETCPU_PRESENT", |
|
|
|
"-DROCKSDB_SCHED_GETCPU_PRESENT", |
|
|
|
"-DROCKSDB_SUPPORT_THREAD_LOCAL", |
|
|
|
"-DROCKSDB_SUPPORT_THREAD_LOCAL", |
|
|
|
"-DHAVE_SSE42", |
|
|
|
|
|
|
|
"-DOS_LINUX", |
|
|
|
"-DOS_LINUX", |
|
|
|
"-DROCKSDB_UBSAN_RUN", |
|
|
|
"-DROCKSDB_UBSAN_RUN", |
|
|
|
# Flags to enable libs we include |
|
|
|
# Flags to enable libs we include |
|
|
@ -48,6 +47,10 @@ rocksdb_preprocessor_flags = [ |
|
|
|
"-I" + REPO_PATH, |
|
|
|
"-I" + REPO_PATH, |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rocksdb_arch_preprocessor_flags = { |
|
|
|
|
|
|
|
"x86_64": ["-DHAVE_SSE42"], |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
cpp_library( |
|
|
|
cpp_library( |
|
|
|
name = "rocksdb_lib", |
|
|
|
name = "rocksdb_lib", |
|
|
|
headers = AutoHeaders.RECURSIVE_GLOB, |
|
|
|
headers = AutoHeaders.RECURSIVE_GLOB, |
|
|
@ -263,6 +266,7 @@ cpp_library( |
|
|
|
], |
|
|
|
], |
|
|
|
deps = [], |
|
|
|
deps = [], |
|
|
|
preprocessor_flags = rocksdb_preprocessor_flags, |
|
|
|
preprocessor_flags = rocksdb_preprocessor_flags, |
|
|
|
|
|
|
|
arch_preprocessor_flags = rocksdb_arch_preprocessor_flags, |
|
|
|
compiler_flags = rocksdb_compiler_flags, |
|
|
|
compiler_flags = rocksdb_compiler_flags, |
|
|
|
external_deps = rocksdb_external_deps, |
|
|
|
external_deps = rocksdb_external_deps, |
|
|
|
) |
|
|
|
) |
|
|
@ -283,6 +287,7 @@ cpp_library( |
|
|
|
], |
|
|
|
], |
|
|
|
deps = [":rocksdb_lib"], |
|
|
|
deps = [":rocksdb_lib"], |
|
|
|
preprocessor_flags = rocksdb_preprocessor_flags, |
|
|
|
preprocessor_flags = rocksdb_preprocessor_flags, |
|
|
|
|
|
|
|
arch_preprocessor_flags = rocksdb_arch_preprocessor_flags, |
|
|
|
compiler_flags = rocksdb_compiler_flags, |
|
|
|
compiler_flags = rocksdb_compiler_flags, |
|
|
|
external_deps = rocksdb_external_deps, |
|
|
|
external_deps = rocksdb_external_deps, |
|
|
|
) |
|
|
|
) |
|
|
@ -296,6 +301,7 @@ cpp_library( |
|
|
|
], |
|
|
|
], |
|
|
|
deps = [":rocksdb_lib"], |
|
|
|
deps = [":rocksdb_lib"], |
|
|
|
preprocessor_flags = rocksdb_preprocessor_flags, |
|
|
|
preprocessor_flags = rocksdb_preprocessor_flags, |
|
|
|
|
|
|
|
arch_preprocessor_flags = rocksdb_arch_preprocessor_flags, |
|
|
|
compiler_flags = rocksdb_compiler_flags, |
|
|
|
compiler_flags = rocksdb_compiler_flags, |
|
|
|
external_deps = rocksdb_external_deps, |
|
|
|
external_deps = rocksdb_external_deps, |
|
|
|
) |
|
|
|
) |
|
|
@ -306,6 +312,7 @@ cpp_library( |
|
|
|
srcs = ["env/env_basic_test.cc"], |
|
|
|
srcs = ["env/env_basic_test.cc"], |
|
|
|
deps = [":rocksdb_test_lib"], |
|
|
|
deps = [":rocksdb_test_lib"], |
|
|
|
preprocessor_flags = rocksdb_preprocessor_flags, |
|
|
|
preprocessor_flags = rocksdb_preprocessor_flags, |
|
|
|
|
|
|
|
arch_preprocessor_flags = rocksdb_arch_preprocessor_flags, |
|
|
|
compiler_flags = rocksdb_compiler_flags, |
|
|
|
compiler_flags = rocksdb_compiler_flags, |
|
|
|
external_deps = rocksdb_external_deps, |
|
|
|
external_deps = rocksdb_external_deps, |
|
|
|
) |
|
|
|
) |
|
|
@ -501,6 +508,7 @@ for test_cfg in ROCKS_TESTS: |
|
|
|
srcs = [test_cc], |
|
|
|
srcs = [test_cc], |
|
|
|
deps = [":rocksdb_test_lib"], |
|
|
|
deps = [":rocksdb_test_lib"], |
|
|
|
preprocessor_flags = rocksdb_preprocessor_flags, |
|
|
|
preprocessor_flags = rocksdb_preprocessor_flags, |
|
|
|
|
|
|
|
arch_preprocessor_flags = rocksdb_arch_preprocessor_flags, |
|
|
|
compiler_flags = rocksdb_compiler_flags, |
|
|
|
compiler_flags = rocksdb_compiler_flags, |
|
|
|
external_deps = rocksdb_external_deps, |
|
|
|
external_deps = rocksdb_external_deps, |
|
|
|
) |
|
|
|
) |
|
|
|