build: add PCHs for ndnsec and unit tests, fine-tune the existing ones
A full debug+tests build now takes 10% less time with gcc-9 and 21% less
with clang-10. Release builds (without tests) are only marginally faster
with gcc and 7% faster with clang.
Change-Id: I494778fe44cecc6209819a49f48a03f4d16c36af
diff --git a/tests/make-interest-data.cpp b/tests/make-interest-data.cpp
index 4031507..09d879b 100644
--- a/tests/make-interest-data.cpp
+++ b/tests/make-interest-data.cpp
@@ -30,7 +30,7 @@
makeInterest(const Name& name, bool canBePrefix, time::milliseconds lifetime,
optional<Interest::Nonce> nonce)
{
- auto interest = make_shared<Interest>(name, lifetime);
+ auto interest = std::make_shared<Interest>(name, lifetime);
interest->setCanBePrefix(canBePrefix);
interest->setNonce(nonce);
return interest;
@@ -39,7 +39,7 @@
shared_ptr<Data>
makeData(const Name& name)
{
- auto data = make_shared<Data>(name);
+ auto data = std::make_shared<Data>(name);
return signData(data);
}