db-move: moved webkit2gtk from [testing] to [extra] (x86_64)
[arch-packages.git] / llvm11 / trunk / no-strict-aliasing-DwarfCompileUnit.patch
blobc71688699e98c48b5032a0d998c0b3d898f3436d
1 diff --git a/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt b/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt
2 index eb924282a75e..85929b54d6ce 100644
3 --- a/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt
4 +++ b/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt
5 @@ -44,3 +44,8 @@ add_llvm_component_library(LLVMAsmPrinter
6 Support
7 Target
10 +# https://bugs.llvm.org/show_bug.cgi?id=50611#c3
11 +if (CMAKE_COMPILER_IS_GNUCXX)
12 + set_source_files_properties(DwarfCompileUnit.cpp PROPERTIES COMPILE_FLAGS -fno-strict-aliasing)
13 +endif()