Skip to content

Commit

Permalink
Moved the check for cmake's DO_NOT_DELAY_TAG_CALC to the top level, so
Browse files Browse the repository at this point in the history
it will affect how tests are built.

Signed-off-by: J. Eric Ivancich <[email protected]>
  • Loading branch information
ivancich committed Aug 4, 2017
1 parent 437b247 commit f2099ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/modules")
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -std=c++11 -Wno-write-strings -Wall -pthread")

if(DO_NOT_DELAY_TAG_CALC)
add_definitions(-DDO_NOT_DELAY_TAG_CALC)
endif()

if (NOT(TARGET gtest AND TARGET gtest_main))
if (NOT GTEST_FOUND)
find_package(GTest QUIET)
Expand Down
4 changes: 0 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ include_directories(../support/src)
set(CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -std=c++11 -Wno-write-strings -Wall -pthread")

if(DO_NOT_DELAY_TAG_CALC)
add_definitions(-DDO_NOT_DELAY_TAG_CALC)
endif()

set(dmc_srcs dmclock_util.cc ../support/src/run_every.cc)

add_library(dmclock STATIC ${dmc_srcs})
2 changes: 2 additions & 0 deletions src/dmclock_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,9 @@ namespace crimson {
ClientRec& top = heap.top();

RequestRef request = std::move(top.next_request().request);
#ifndef DO_NOT_DELAY_TAG_CALC
RequestTag tag = top.next_request().tag;
#endif

// pop request and adjust heaps
top.pop_request();
Expand Down

0 comments on commit f2099ec

Please sign in to comment.