[llvm] Upstreaming warning suppression to LLVM (PR #83590)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 1 08:17:04 PST 2024
https://github.com/ivarusic-amd created https://github.com/llvm/llvm-project/pull/83590
Adding this warning suppression for Windows.
>From 971822b84cb317648ead87f47ef83e8ed8cde80a Mon Sep 17 00:00:00 2001
From: Ivana Rusic <iva.rusic at amd.com>
Date: Fri, 1 Mar 2024 17:06:39 +0100
Subject: [PATCH] Upstreaming warning suppression from rocMlir to LLVM
---
llvm/cmake/modules/HandleLLVMOptions.cmake | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index 08ff49ded57a14..68ded6e5a004c0 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -693,6 +693,7 @@ if ( LLVM_COMPILER_IS_GCC_COMPATIBLE AND LLVM_ENABLE_MODULES )
endif( LLVM_COMPILER_IS_GCC_COMPATIBLE AND LLVM_ENABLE_MODULES )
if (MSVC)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_SILENCE_NONFLOATING_COMPLEX_DEPRECATION_WARNING" CACHE INTERNAL "")
if (NOT CLANG_CL)
set(msvc_warning_flags
# Disabled warnings.
More information about the llvm-commits
mailing list