File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -129,17 +129,23 @@ if (SYNC_SOURCES)
129129
130130 add_library (vix_sync STATIC ${SYNC_SOURCES} )
131131
132- if (TARGET vix_warnings )
133- message ( STATUS "[sync] vix_warnings detected (from umbrella)" )
134- target_link_libraries ( vix_sync PRIVATE vix_warnings )
135-
136- if (VIX_ENABLE_SANITIZERS AND TARGET vix_sanitizers)
137- target_link_libraries ( vix_sync PRIVATE vix_sanitizers )
138- endif ()
132+ if (NOT MSVC )
133+ target_compile_options ( vix_sync PRIVATE
134+ -Wall
135+ -Wextra
136+ -Wpedantic
137+ )
138+ endif ()
139139
140- else ()
141- message (STATUS "[sync] vix_warnings not found (building sync standalone)" )
142- endif ()
140+ if (VIX_ENABLE_SANITIZERS AND NOT MSVC )
141+ target_compile_options (vix_sync PRIVATE
142+ -fno-omit-frame-pointer
143+ -fsanitize=address,undefined
144+ )
145+ target_link_options (vix_sync PRIVATE
146+ -fsanitize=address,undefined
147+ )
148+ endif ()
143149
144150 add_library (vix::sync ALIAS vix_sync )
145151 target_compile_features (vix_sync PUBLIC cxx_std_20 )
You can’t perform that action at this time.
0 commit comments