Skip to content

Commit

Permalink
[llvm][unittests] Silence warning on MSVC after 5b24231
Browse files Browse the repository at this point in the history
Differential revision: https://reviews.llvm.org/D149609
  • Loading branch information
aganea committed May 2, 2023
1 parent 73e15b5 commit 8efc7de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions llvm/unittests/Object/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ add_llvm_unittest(ObjectTests
)

target_link_libraries(ObjectTests PRIVATE LLVMTestingSupport)

if (MSVC)
# Disable warning C4309: '=': truncation of constant value
set_source_files_properties(GOFFObjectFileTest.cpp PROPERTIES COMPILE_FLAGS -wd4309)
endif()

0 comments on commit 8efc7de

Please sign in to comment.