mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 20:56:23 +00:00
feat(Tools/MMapsGenerator): Improve multithreading of mmaps_generator (#10963)
* cherry-pick commit (699edaa014)
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
This commit is contained in:
committed by
GitHub
parent
26c66e0d79
commit
769eea2cc0
@@ -66,6 +66,52 @@ if(WITH_COREDEBUG)
|
||||
message(STATUS "Clang: Debug-flags set (-g3)")
|
||||
endif()
|
||||
|
||||
if(MSAN)
|
||||
target_compile_options(acore-compile-option-interface
|
||||
INTERFACE
|
||||
-fno-omit-frame-pointer
|
||||
-fsanitize=memory
|
||||
-fsanitize-memory-track-origins
|
||||
-mllvm
|
||||
-msan-keep-going=1)
|
||||
|
||||
target_link_options(acore-compile-option-interface
|
||||
INTERFACE
|
||||
-fno-omit-frame-pointer
|
||||
-fsanitize=memory
|
||||
-fsanitize-memory-track-origins)
|
||||
|
||||
message(STATUS "Clang: Enabled Memory Sanitizer MSan")
|
||||
endif()
|
||||
|
||||
if(UBSAN)
|
||||
target_compile_options(acore-compile-option-interface
|
||||
INTERFACE
|
||||
-fno-omit-frame-pointer
|
||||
-fsanitize=undefined)
|
||||
|
||||
target_link_options(acore-compile-option-interface
|
||||
INTERFACE
|
||||
-fno-omit-frame-pointer
|
||||
-fsanitize=undefined)
|
||||
|
||||
message(STATUS "Clang: Enabled Undefined Behavior Sanitizer UBSan")
|
||||
endif()
|
||||
|
||||
if(TSAN)
|
||||
target_compile_options(acore-compile-option-interface
|
||||
INTERFACE
|
||||
-fno-omit-frame-pointer
|
||||
-fsanitize=thread)
|
||||
|
||||
target_link_options(acore-compile-option-interface
|
||||
INTERFACE
|
||||
-fno-omit-frame-pointer
|
||||
-fsanitize=thread)
|
||||
|
||||
message(STATUS "Clang: Enabled Thread Sanitizer TSan")
|
||||
endif()
|
||||
|
||||
# -Wno-narrowing needed to suppress a warning in g3d
|
||||
# -Wno-deprecated-register is needed to suppress gsoap warnings on Unix systems.
|
||||
target_compile_options(acore-compile-option-interface
|
||||
|
||||
@@ -168,6 +168,27 @@ elseif (WITH_DETAILED_METRICS)
|
||||
add_definitions(-DWITH_DETAILED_METRICS)
|
||||
endif()
|
||||
|
||||
if(MSAN)
|
||||
message("")
|
||||
message(" *** MSAN - WARNING!")
|
||||
message(" *** Please note that this is for DEBUGGING WITH MEMORY SANITIZER only!")
|
||||
add_definitions(-DMSAN)
|
||||
endif()
|
||||
|
||||
if(UBSAN)
|
||||
message("")
|
||||
message(" *** UBSAN - WARNING!")
|
||||
message(" *** Please note that this is for DEBUGGING WITH UNDEFINED BEHAVIOR SANITIZER only!")
|
||||
add_definitions(-DUBSAN)
|
||||
endif()
|
||||
|
||||
if(TSAN)
|
||||
message("")
|
||||
message(" *** TSAN - WARNING!")
|
||||
message(" *** Please note that this is for DEBUGGING WITH THREAD SANITIZER only!")
|
||||
add_definitions(-DTSAN -DNO_BUFFERPOOL)
|
||||
endif()
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
message("")
|
||||
message(" *** WITH_DYNAMIC_LINKING - INFO!")
|
||||
|
||||
Reference in New Issue
Block a user