From 80e7c4f23b25138d8670b16df3185f7960b25af4 Mon Sep 17 00:00:00 2001 From: "H. Diedrich" Date: Fri, 14 Nov 2014 16:52:09 +0100 Subject: [PATCH] Exclude ComputeTable from building Set NDEBUG as CXXFLAGS to skip the compilation of this debug function. The NDEBUG logic is broken because REGISTER_MODULE_INITIALIZER(snappy, ComputeTable()); is set to always result to nothing, independently of NDEBUG. If debug tests should instead be included in the build, both NDEBUG must not be set (as before) but also, REGISTER_MODULE_INITIALIZER repaired. COUCHDB-2463 --- rebar.config | 1 + 1 file changed, 1 insertion(+) diff --git a/rebar.config b/rebar.config index 36625af..cbb4a00 100644 --- a/rebar.config +++ b/rebar.config @@ -4,6 +4,7 @@ {port_sources, ["c_src/*.cc", "c_src/snappy/*.cc"]}. {port_env, [ + {"CXXFLAGS", "$CXXFLAGS -DNDEBUG"}, {"(linux|solaris)", "LDFLAGS", "$LDFLAGS -lstdc++"} ]}. {so_name, "snappy_nif.so"}.