diff options
author | Frank Löffler <knarf@cct.lsu.edu> | 2013-10-11 22:54:55 -0500 |
---|---|---|
committer | Frank Löffler <knarf@cct.lsu.edu> | 2013-10-11 22:54:55 -0500 |
commit | b9dcd6e71ae740d1660af390d473680439604551 (patch) | |
tree | 01d17ab466106cb0fd760f9411d9052d2c6de5ef | |
parent | e99f723c8589aa0b9b2c84e1448c81d10843eb81 (diff) |
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).
-rw-r--r-- | Carpet/CycleClock/src/clock.cc | 9 |
1 files changed, 9 insertions, 0 deletions
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 |