summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Jamroot.jam13
-rw-r--r--libpqpp/unittests/testpq.cpp2
2 files changed, 8 insertions, 7 deletions
diff --git a/Jamroot.jam b/Jamroot.jam
index eaa436f..e04af47 100644
--- a/Jamroot.jam
+++ b/Jamroot.jam
@@ -6,12 +6,13 @@ variant coverage : debug ;
project
: requirements
- <variant>release:<cxxflags>"-std=c++1y -fvisibility=hidden"
- <variant>release:<linkflags>"-Wl,-z,defs,--warn-once,--gc-sections"
- <variant>debug:<cxxflags>"-W -Wall -Werror -Wwrite-strings -std=c++1y -fvisibility=hidden"
- <variant>debug:<linkflags>"-Wl,-z,defs,--warn-once"
- <variant>coverage:<cxxflags>"-W -Wall -Werror -Wwrite-strings -std=c++1y --coverage -fvisibility=hidden"
- <variant>coverage:<linkflags>"-Wl,-z,defs,--warn-once --coverage"
+ <cxxflags>"-std=c++17 -fvisibility=hidden -fvisibility-inlines-hidden"
+ <linkflags>"-Wl,-z,defs,--warn-once,--gc-sections"
+ <variant>release:<cxxflags>"-flto=2"
+ <variant>release:<linkflags>"-flto=2"
+ <variant>debug:<cxxflags>"-W -Wall -Werror -Wextra"
+ <variant>coverage:<cxxflags>"--coverage"
+ <variant>coverage:<linkflags>"--coverage"
;
build-project libpqpp ;
diff --git a/libpqpp/unittests/testpq.cpp b/libpqpp/unittests/testpq.cpp
index cfe7b11..56ab20f 100644
--- a/libpqpp/unittests/testpq.cpp
+++ b/libpqpp/unittests/testpq.cpp
@@ -463,7 +463,7 @@ BOOST_AUTO_TEST_CASE( largeBlob )
ro->execute("TRUNCATE TABLE blobtest");
AdHoc::FileUtils::MemMap f("/proc/self/exe");
DB::Blob blob(f.data, f.getStat().st_size);
- BOOST_REQUIRE(blob.len > 200000); // Just assert the mapped file is actually "large"
+ BOOST_REQUIRE(blob.len > 140000); // Just assert the mapped file is actually "large"
auto ins = ro->modify("INSERT INTO blobtest(data) VALUES(?)");
ins->bindParamBLOB(0, blob);
ins->execute();