about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-12-06 21:52:31 +0100
committerGitHub <noreply@github.com>2023-12-06 21:52:31 +0100
commit78d2061390f10a41a03618677c53dbee33af0d67 (patch)
tree23ef3d032eded6187d28d12f71c8803f438df696 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parentf546b44ecd655f01c390aef26ea4bb1e513e963e (diff)
parent84bc8f037afa470232b3171c5e547744c322be2b (diff)
downloadrust-78d2061390f10a41a03618677c53dbee33af0d67.tar.gz
rust-78d2061390f10a41a03618677c53dbee33af0d67.zip
Rollup merge of #118177 - sivadeilra:suppress-llvm-warnings, r=cuviper
Suppress warnings in LLVM wrapper when targeting MSVC

The LLVM header files generate many warnings when compiled using MSVC. This makes it difficult to work on the LLVM wrapper code, because the warnings and errors that are relevant to local edits are obscured by the hundreds of lines of warnings from the LLVM Headers.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/Linker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/Linker.cpp b/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
index 8766e96f086..533df0f75f8 100644
--- a/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
@@ -1,3 +1,4 @@
+#include "SuppressLLVMWarnings.h"
 #include "llvm/Linker/Linker.h"
 
 #include "LLVMWrapper.h"