mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Build assoc DHT code on travis.
This commit is contained in:
parent
c597f67012
commit
f9c83c1084
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user