From 61e10b941ea2ea9df0234eceed90a5f93f8f5f32 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 1 Apr 2018 14:01:12 +0100 Subject: Updated compile flags --- Jamroot.jam | 13 +++++++------ libpqpp/unittests/testpq.cpp | 2 +- 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 - release:"-std=c++1y -fvisibility=hidden" - release:"-Wl,-z,defs,--warn-once,--gc-sections" - debug:"-W -Wall -Werror -Wwrite-strings -std=c++1y -fvisibility=hidden" - debug:"-Wl,-z,defs,--warn-once" - coverage:"-W -Wall -Werror -Wwrite-strings -std=c++1y --coverage -fvisibility=hidden" - coverage:"-Wl,-z,defs,--warn-once --coverage" + "-std=c++17 -fvisibility=hidden -fvisibility-inlines-hidden" + "-Wl,-z,defs,--warn-once,--gc-sections" + release:"-flto=2" + release:"-flto=2" + debug:"-W -Wall -Werror -Wextra" + coverage:"--coverage" + coverage:"--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(); -- cgit v1.2.3