Skip to content

Commit

Permalink
Build assoc DHT code on travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Aug 19, 2016
1 parent c597f67 commit f9c83c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ if(DEBUG)
add_definitions(-DTOX_DEBUG=1)
endif()

option(ASSOC_DHT "Enable module to store currently unused ID <=> IP associations" OFF)
if(ASSOC_DHT)
add_definitions(-DENABLE_ASSOC_DHT=1)
endif()

find_package(PkgConfig REQUIRED)
find_package(Threads REQUIRED)

Expand Down
2 changes: 1 addition & 1 deletion other/travis/toxcore-script
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ git diff --exit-code

# Build toxcore and run tests.
export CFLAGS="-O3 -fprofile-arcs -ftest-coverage -DTRAVIS_ENV=1"
RUN $CMAKE -B$BUILD_DIR -H. -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DLOGGING=ON -DDEBUG=ON
RUN $CMAKE -B$BUILD_DIR -H. -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX -DLOGGING=ON -DDEBUG=ON -DASSOC_DHT=ON

export CTEST_OUTPUT_ON_FAILURE=1

Expand Down

0 comments on commit f9c83c1

Please sign in to comment.