Skip to content

Commit bfc01ff

Browse files
committed
CMakeLists.txt - force disable glib options thread sanitizer
1 parent c2a0e47 commit bfc01ff

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: CMakeLists.txt

+9
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,15 @@ if(LIBICAL_DEVMODE_THREAD_SANITIZER)
882882
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=thread -O1 -g -DTHREAD_SANITIZER")
883883
endif()
884884
set(SHARED_ONLY True)
885+
message(
886+
NOTICE
887+
"Currently unable to build thread sanitizer for glib-based configurations."
888+
"Disabling GLib and GLib docs, GObject_Introspection and VALA support."
889+
)
890+
set(ICAL_GLIB False)
891+
set(GOBJECT_INTROSPECTION False)
892+
set(ICAL_GLIB_BUILD_DOCS False)
893+
set(ICAL_GLIB_VAPI False)
885894
else()
886895
message(FATAL_ERROR "You are trying to build with the thread sanitizer using a non-GCC or Clang compiler.")
887896
endif()

0 commit comments

Comments
 (0)