mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 12:24:53 +00:00
misc(backend): remove leak sanitizer which is included in asan
This commit is contained in:
parent
724e0c19bf
commit
7f6b1f1510
@ -87,7 +87,6 @@ if (${TGI_TRTLLM_BACKEND_BUILD_TESTS})
|
|||||||
message(STATUS "Building tests")
|
message(STATUS "Building tests")
|
||||||
option(TGI_TRTLLM_BACKEND_ENABLE_ASAN "Enable AddressSanitizer")
|
option(TGI_TRTLLM_BACKEND_ENABLE_ASAN "Enable AddressSanitizer")
|
||||||
option(TGI_TRTLLM_BACKEND_ENABLE_UBSAN "Enable UndefinedSanitizer")
|
option(TGI_TRTLLM_BACKEND_ENABLE_UBSAN "Enable UndefinedSanitizer")
|
||||||
option(TGI_TRTLLM_BACKEND_ENABLE_MSAN "Enable MemorySanitizer")
|
|
||||||
|
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
Catch2
|
Catch2
|
||||||
@ -125,11 +124,6 @@ if (${TGI_TRTLLM_BACKEND_BUILD_TESTS})
|
|||||||
message(STATUS "Enabled UndefinedSanitizer")
|
message(STATUS "Enabled UndefinedSanitizer")
|
||||||
target_link_options(tgi_trtllm_backend_tests BEFORE PUBLIC -fsanitize=undefined)
|
target_link_options(tgi_trtllm_backend_tests BEFORE PUBLIC -fsanitize=undefined)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (${TGI_TRTLLM_BACKEND_ENABLE_MSAN})
|
|
||||||
message(STATUS "Enabled MemorySanitizer")
|
|
||||||
target_link_options(tgi_trtllm_backend_tests BEFORE PUBLIC -fsanitize=memory)
|
|
||||||
endif ()
|
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE MATCHES "Debug")
|
if(CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||||
|
Loading…
Reference in New Issue
Block a user