Skip to content

Commit

Permalink
misc(backend): disable Werror for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mfuntowicz committed Dec 19, 2024
1 parent dd8dada commit 49a0f95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backends/trtllm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ if (${TGI_TRTLLM_BACKEND_BUILD_TESTS})
check_cxx_compiler_flag("-Wnrvo" COMPILER_SUPPORT_WARNING_ON_NVRO)
if (${COMPILER_SUPPORT_WARNING_ON_NVRO})
message(STATUS "Enabling non-NVRO detection")
target_compile_options(tgi_trtllm_backend_impl "-Werror -Wnvro")
target_compile_options(tgi_trtllm_backend_impl "-Wnvro")
endif ()

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}")

add_executable(tgi_trtllm_backend_tests tests/test_hardware.cpp tests/test_backend.cpp)

target_compile_options(tgi_trtllm_backend_tests PRIVATE -Werror)
# target_compile_options(tgi_trtllm_backend_tests PRIVATE -Werror)
target_link_directories(tgi_trtllm_backend_tests PRIVATE "${TRTLLM_NVRTC_WRAPPER_PARENT_LIBRARY_PATH}")
target_include_directories(tgi_trtllm_backend_tests PUBLIC "${trtllm_SOURCE_DIR}/cpp/include")
target_include_directories(tgi_trtllm_backend_tests PUBLIC "csrc/")
Expand Down

0 comments on commit 49a0f95

Please sign in to comment.