From b9dcd6e71ae740d1660af390d473680439604551 Mon Sep 17 00:00:00 2001 From: Frank Löffler Date: Fri, 11 Oct 2013 22:54:55 -0500 Subject: CycleClock: define CycleClock_Setup() without HAVE_TICK_COUNTER Define a dummy CycleClock_Setup() routine for Cactus to call from the scheduler. Without this, the linker will rightfully complain about the missing symbol if the architecture doesn't have counters (HAVE_TICK_COUNTER isn't defined). --- Carpet/CycleClock/src/clock.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Carpet/CycleClock/src/clock.cc b/Carpet/CycleClock/src/clock.cc index 4940db9e7..578cd7e44 100644 --- a/Carpet/CycleClock/src/clock.cc +++ b/Carpet/CycleClock/src/clock.cc @@ -184,4 +184,13 @@ namespace CycleClock { } // namespace CycleClock +#else // HAVE_TICK_COUNTER + +namespace CycleClock { + extern "C" + int CycleClock_Setup() + { + return 0; + } +} #endif -- cgit v1.2.3