Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
WIP: Temporarily disable -Werror options.
Browse files Browse the repository at this point in the history
This is because of NVBugs 2431416. We'll need a fix in nvcc.
  • Loading branch information
alliepiper committed Jun 9, 2021
1 parent a548afa commit 9177fa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/CubBuildCompilerTargets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function(cub_build_compiler_targets)
if ("MSVC" STREQUAL "${CMAKE_CXX_COMPILER_ID}")
append_option_if_available("/W4" cxx_compile_options)

append_option_if_available("/WX" cxx_compile_options)
# append_option_if_available("/WX" cxx_compile_options)

# Suppress overly-pedantic/unavoidable warnings brought in with /W4:
# C4324: structure was padded due to alignment specifier
Expand All @@ -38,7 +38,7 @@ function(cub_build_compiler_targets)
# Some tests require /bigobj to fit everything into their object files:
append_option_if_available("/bigobj" cxx_compile_options)
else()
append_option_if_available("-Werror" cxx_compile_options)
# append_option_if_available("-Werror" cxx_compile_options)
append_option_if_available("-Wall" cxx_compile_options)
append_option_if_available("-Wextra" cxx_compile_options)
append_option_if_available("-Winit-self" cxx_compile_options)
Expand Down Expand Up @@ -112,7 +112,7 @@ function(cub_build_compiler_targets)
# Display diagnostic numbers.
$<$<AND:$<COMPILE_LANGUAGE:CUDA>,$<CUDA_COMPILER_ID:NVIDIA>>:-Xcudafe=--display_error_number>
# Promote warnings.
$<$<AND:$<COMPILE_LANGUAGE:CUDA>,$<CUDA_COMPILER_ID:NVIDIA>>:-Xcudafe=--promote_warnings>
# $<$<AND:$<COMPILE_LANGUAGE:CUDA>,$<CUDA_COMPILER_ID:NVIDIA>>:-Xcudafe=--promote_warnings>
# Don't complain about deprecated GPU targets.
$<$<AND:$<COMPILE_LANGUAGE:CUDA>,$<CUDA_COMPILER_ID:NVIDIA>>:-Wno-deprecated-gpu-targets>
)
Expand Down

0 comments on commit 9177fa0

Please sign in to comment.