From c2ac869066f4c2576083e1e5c307a066f284e2f6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 11 Feb 2018 14:35:44 +0000 Subject: Add some nice cxxflags --- Jamroot.jam | 6 +++--- icespider/unittests/testCompile.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Jamroot.jam b/Jamroot.jam index 3fa78c0..2aec570 100644 --- a/Jamroot.jam +++ b/Jamroot.jam @@ -7,9 +7,9 @@ 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" + release:"-std=c++1y -fvisibility=hidden -fvisibility-inlines-hidden -flto=2" + release:"-Wl,-z,defs,--warn-once,--gc-sections -flto=2" + debug:"-W -Wall -Wextra -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" diff --git a/icespider/unittests/testCompile.cpp b/icespider/unittests/testCompile.cpp index 29c8cfc..6fde743 100644 --- a/icespider/unittests/testCompile.cpp +++ b/icespider/unittests/testCompile.cpp @@ -79,7 +79,7 @@ BOOST_AUTO_TEST_CASE( testCompile ) auto libGenDir = (rootDir / "bin" / modeDir / "slicer-yes"); auto compileCommand = boost::algorithm::join>({ - "gcc", "-c", "-std=c++1y", "-fPIC", "-fvisibility=hidden", "-O3", + "gcc", "-c", "-std=c++1y", "-fPIC", "-fvisibility=hidden", "-O3", "-flto", "-fvisibility-inlines-hidden", "-I", "/usr/include/adhocutil", "-I", "/usr/include/glib-2.0", "-I", "/usr/include/glibmm-2.4", -- cgit v1.2.3