Fix Rocksdb lite build failure in forward_iterator_bench

Summary:
Fixed Rocksdb lite build failure in forward_iterator_bench by
defining main for the ROCKSDB_LITE case

Test Plan: build ROCKSDB_LITE

Reviewers: anthony, yhchiang, IslamAbdelRahman, sdong

Reviewed By: sdong

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D50733
This commit is contained in:
Venkatesh Radhakrishnan 2015-11-16 09:57:08 -08:00
parent 7824444bfc
commit d06b63e99f

View File

@ -7,15 +7,13 @@
#define __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS
#endif #endif
#ifndef GFLAGS #if !defined(GFLAGS) || defined(ROCKSDB_LITE)
#include <cstdio> #include <cstdio>
int main() { int main() {
fprintf(stderr, "Please install gflags to run rocksdb tools\n"); fprintf(stderr, "Please install gflags to run rocksdb tools\n");
return 1; return 1;
} }
#else #else
#ifndef ROCKSDB_LITE
#include <gflags/gflags.h> #include <gflags/gflags.h>
#include <semaphore.h> #include <semaphore.h>
#include <atomic> #include <atomic>
@ -369,7 +367,4 @@ int main(int argc, char** argv) {
writers.clear(); writers.clear();
readers.clear(); readers.clear();
} }
#endif // !defined(GFLAGS) || defined(ROCKSDB_LITE)
#endif // ROCKSDB_LITE
#endif // GFLAGS