I use xcode (gcc) to compile my boost test package, and it takes too much time.
Tests are minimal dummy tests, but it takes a few seconds to compile them (about 20):
#include "boost/test/included/unit_test.hpp" BOOST_AUTO_TEST_CASE(dummy) { BOOST_CHECK_EQUAL(2+2, 4); } BOOST_AUTO_TEST_CASE(dummyFail) { BOOST_CHECK_EQUAL(2+3, 4); }
The guide suggests using a library version to speed up compilation. However, I am worried that this might not work - xcode is already rebuilding my tests. The whole structure has not been compiled again, since object files exist.
I think this is the number of header and template files in Boost.Test that are responsible for most of the compilation time.
Do you have an idea how to compile much faster? Will use it as a library? Will it include only boost.test parts?
Any help is much appreciated!
clemens
source share