-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake: do not build tests for Release build and cleanups #5916
Commits on Dec 13, 2019
-
cmake: disable WITH_TESTS for Release builds
cmake pass '-DNDEBUG' to compiler when compiling non-Debug builds. and rocksdb's tests are short-circuited if the "NDEBUG" macro is defined, so the "Release" builds fail when building tests. in this change, cmake disables `WITH_TESTS` option if `CMAKE_BUILD_TYPE` is `Release`. this also maps how `Makefile` defines `dbg` and `release` targets. in `Makefile`, `release` target does not depend on `$(TESTS)`, while `dbg` does. fixes facebook#2445 Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 227cdd4 - Browse repository at this point
Copy the full SHA 227cdd4View commit details -
cmake: compile testharness as a static library
so we can reference it without worrying about its dependencies like gtest. testharness is used by table_reader_bench. Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7d1de89 - Browse repository at this point
Copy the full SHA 7d1de89View commit details -
cmake: use CMAKE_DEPENDENT_OPTION() to conditionalize option definition
`WITH_GFLAGS` is enabled/disabled depending on the building system, so it'd be simpler if we could define it using `CMAKE_DEPENDENT_OPTION`. Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9e33443 - Browse repository at this point
Copy the full SHA 9e33443View commit details -
cmake: add benchmark tools without a loop
unfold the loop, and remove the unused dependencies from linked libraries. Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3d65227 - Browse repository at this point
Copy the full SHA 3d65227View commit details -
TEST_EXES and C_TEST_EXES are just aliases, so remove them Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 49d3a25 - Browse repository at this point
Copy the full SHA 49d3a25View commit details -
cmake: simplify db/c_test.c build
* no need to use a loop for building it * no need to set properties like `EXCLUDE_FROM_DEFAULT_BUILD_RELEASE`, these properties are not read by anybody * no need to link against testutillib Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a0599be - Browse repository at this point
Copy the full SHA a0599beView commit details -
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b77534d - Browse repository at this point
Copy the full SHA b77534dView commit details -
newer libgflags-dev ships with cmake support, but libgflags-dev 2.1.2-3 shipped by xenial does not. let's add the find_package() support. so our CI can build with gflags Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2117e9a - Browse repository at this point
Copy the full SHA 2117e9aView commit details -
cmake: require gflags if WITH_GFLAGS
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a9b5366 - Browse repository at this point
Copy the full SHA a9b5366View commit details -
.travis.yml: disable WITH_GFLAGS for cmake-mingw
as we don't have libgflags-dev installed on mingw, and the toolchain is not MSVC. please note, currently WITH_GFLAGS is OFF by default on MINGW, but it's still better to be explicit. Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5492027 - Browse repository at this point
Copy the full SHA 5492027View commit details -
.travis.yml: install gflags on osx
since WITH_GFLAGS is ON by default on OSX, we need to install or or disable it explicitly. it'd be better to install it for better coverage of the CI test. Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f8cd930 - Browse repository at this point
Copy the full SHA f8cd930View commit details -
db_stress: silence clang++ warning
stress_tool/batched_ops_stress.cc:178:41: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] 2822 std::array<std::string, 10> keys = {"0", "1", "2", "3", "4", 2823 ^~~~~~~~~~~~~~~~~~~~~~~~ 28241 error generated. see the discussions at https://stackoverflow.com/questions/22501368/why-wasnt-a-double-curly-braces-syntax-preferred-for-constructors-taking-a-std and https://en.cppreference.com/w/cpp/container/array Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 04f3573 - Browse repository at this point
Copy the full SHA 04f3573View commit details