Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2017-09-28 23:51:17 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2017-09-29 16:27:27 +0300
commitb8cdc1b24e963d7d38271c97d1333c3c7ac69b90 (patch)
treef8afce8138ef87d09cf38772b591501e74933ada /CMakeLists.txt
parent8168ea1e604d9a75b314a8b739cf5a774a261a6e (diff)
[base] WorkerThread supports delayed tasks now.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e2053bd182..03a9e26807 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -53,6 +53,7 @@ endif()
# Options
option(USE_ASAN "Enable Address Sanitizer" OFF)
+option(USE_TSAN "Enable Thread Sanitizer" OFF)
option(PYBINDINGS "Create makefiles for building python bindings" OFF)
if (PLATFORM_LINUX)
option(USE_PPROF "Enable Google Profiler" OFF)
@@ -62,6 +63,10 @@ if (USE_ASAN)
message("Address Sanitizer is enabled")
endif()
+if (USE_TSAN)
+ message("Thread Sanitizer is enabled")
+endif()
+
if (USE_PPROF)
message("Google Profiler is enabled")
add_definitions(-DUSE_PPROF)
@@ -174,6 +179,9 @@ function(omim_add_executable executable)
if (USE_ASAN)
target_link_libraries(${executable} "-fsanitize=address" "-fno-omit-frame-pointer")
endif()
+ if (USE_TSAN)
+ target_link_libraries(${executable} "-fsanitize=thread" "-fno-omit-frame-pointer")
+ endif()
if (USE_PPROF)
target_link_libraries(${executable} "-lprofiler")
endif()
@@ -302,6 +310,13 @@ if (USE_ASAN)
)
endif()
+if (USE_TSAN)
+ add_compile_options(
+ "-fsanitize=thread"
+ "-fno-omit-frame-pointer"
+ )
+endif()
+
add_subdirectory(3party/stb_image)
add_subdirectory(3party/sdf_image)
add_subdirectory(3party/protobuf)