From d5fc0577b88e67f9fa05e0e3f8fc882265520e0b Mon Sep 17 00:00:00 2001 From: Morgan Funtowicz Date: Wed, 5 Feb 2025 23:01:09 +0100 Subject: [PATCH] backend(trtllm): make sure we escalade all warnings as errors on the backend impl in debug mode --- backends/trtllm/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/backends/trtllm/CMakeLists.txt b/backends/trtllm/CMakeLists.txt index 2e10b84d..e54fd116 100644 --- a/backends/trtllm/CMakeLists.txt +++ b/backends/trtllm/CMakeLists.txt @@ -86,6 +86,7 @@ if (${TGI_TRTLLM_BACKEND_BUILD_TESTS} AND CMAKE_BUILD_TYPE MATCHES "Debug") message(STATUS "Enabling non-NVRO detection") target_compile_options(tgi_trtllm_backend_impl PRIVATE -Wnrvo) endif () + target_compile_options(tgi_trtllm_backend_impl PRIVATE -Wall) cmake_path(GET TRTLLM_NVRTC_WRAPPER_LIBRARY_PATH PARENT_PATH TRTLLM_NVRTC_WRAPPER_PARENT_LIBRARY_PATH) message(STATUS "Adding linking path: ${TRTLLM_NVRTC_WRAPPER_PARENT_LIBRARY_PATH}")