[arch-commits] Commit in (3 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Jun 21 11:02:48 UTC 2021
Date: Monday, June 21, 2021 @ 11:02:47
Author: foutrelis
Revision: 418538
Re-add llvm11 for wasmer
Added:
llvm11/
llvm11/trunk/no-strict-aliasing-DwarfCompileUnit.patch
Modified:
llvm11/trunk/PKGBUILD
-------------------------------------------+
PKGBUILD | 11 ++++++++---
no-strict-aliasing-DwarfCompileUnit.patch | 13 +++++++++++++
2 files changed, 21 insertions(+), 3 deletions(-)
Modified: llvm11/trunk/PKGBUILD
===================================================================
--- llvm11/trunk/PKGBUILD 2021-06-04 07:51:56 UTC (rev 417092)
+++ llvm11/trunk/PKGBUILD 2021-06-21 11:02:47 UTC (rev 418538)
@@ -3,7 +3,7 @@
pkgname=('llvm11' 'llvm11-libs')
pkgver=11.1.0
-pkgrel=2
+pkgrel=3
arch=('x86_64')
url="https://llvm.org/"
license=('custom:Apache 2.0 with LLVM Exception')
@@ -13,11 +13,13 @@
_source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
source=($_source_base/llvm-$pkgver.src.tar.xz{,.sig}
utils-benchmark-fix-missing-include.patch
- amdgpu-avoid-an-illegal-operand-in-si-shrink-instr.patch)
+ amdgpu-avoid-an-illegal-operand-in-si-shrink-instr.patch
+ no-strict-aliasing-DwarfCompileUnit.patch)
sha256sums=('ce8508e318a01a63d4e8b3090ab2ded3c598a50258cc49e2625b9120d4c03ea5'
'SKIP'
'5f666675fd45848e4c4b0f94068f7648dd9ff88df4a7b19d2a9f2b83ee358a7e'
- '85b6977005899bc76fcc548e0b6501cae5f50a8ad03060b9f58d03d775323327')
+ '85b6977005899bc76fcc548e0b6501cae5f50a8ad03060b9f58d03d775323327'
+ 'd1eff24508e35aae6c26a943dbaa3ef5acb60a145b008fd1ef9ac6f6c4faa662')
validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans at chromium.org>
validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar at redhat.com>
@@ -47,6 +49,9 @@
# https://gitlab.freedesktop.org/mesa/mesa/-/issues/4107
# https://bugs.llvm.org/show_bug.cgi?id=48921#c2
patch -Np2 -i ../amdgpu-avoid-an-illegal-operand-in-si-shrink-instr.patch
+
+ # https://bugs.llvm.org/show_bug.cgi?id=50611#c3
+ patch -Np2 -i ../no-strict-aliasing-DwarfCompileUnit.patch
}
build() {
Added: llvm11/trunk/no-strict-aliasing-DwarfCompileUnit.patch
===================================================================
--- llvm11/trunk/no-strict-aliasing-DwarfCompileUnit.patch (rev 0)
+++ llvm11/trunk/no-strict-aliasing-DwarfCompileUnit.patch 2021-06-21 11:02:47 UTC (rev 418538)
@@ -0,0 +1,13 @@
+diff --git a/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt b/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt
+index eb924282a75e..85929b54d6ce 100644
+--- a/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt
++++ b/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt
+@@ -44,3 +44,8 @@ add_llvm_component_library(LLVMAsmPrinter
+ Support
+ Target
+ )
++
++# https://bugs.llvm.org/show_bug.cgi?id=50611#c3
++if (CMAKE_COMPILER_IS_GNUCXX)
++ set_source_files_properties(DwarfCompileUnit.cpp PROPERTIES COMPILE_FLAGS -fno-strict-aliasing)
++endif()
More information about the arch-commits
mailing list