Accepting request 947582 from home:glaubitz:branches:devel:tools:compiler
- Add support for experimental targets and enable the M68k backend - Add patch to fix testsuite after enabling the M68k backend + llvm-update-extract-section-script.patch OBS-URL: https://build.opensuse.org/request/show/947582 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm13?expand=0&rev=7
This commit is contained in:
parent
2bc3f1ad81
commit
5e767d50e5
28
llvm-update-extract-section-script.patch
Normal file
28
llvm-update-extract-section-script.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From 4c0d15f86f33dc61ec1dc618fb164c127409edfc Mon Sep 17 00:00:00 2001
|
||||
From: Min-Yih Hsu <minyihh@uci.edu>
|
||||
Date: Sat, 7 Aug 2021 17:07:28 -0700
|
||||
Subject: [PATCH] Update `llvm-readobj` command invocation in
|
||||
extract-section.py
|
||||
|
||||
Change `-elf-output-style` to `--elf-output-style` to reflect the recent
|
||||
changes on short/long CLI options in LLVM binary utils.
|
||||
---
|
||||
llvm/utils/extract-section.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/llvm/utils/extract-section.py b/llvm/utils/extract-section.py
|
||||
index ca19b0ee8b61..0c96b52fc522 100755
|
||||
--- a/llvm/utils/extract-section.py
|
||||
+++ b/llvm/utils/extract-section.py
|
||||
@@ -31,7 +31,7 @@ def read_raw_stdin():
|
||||
|
||||
def get_raw_section_dump(readobj_path, section_name, input_file):
|
||||
import subprocess
|
||||
- cmd = [readobj_path, '-elf-output-style=GNU', '--hex-dump={}'.format(section_name),
|
||||
+ cmd = [readobj_path, '--elf-output-style=GNU', '--hex-dump={}'.format(section_name),
|
||||
input_file]
|
||||
proc = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
|
||||
|
||||
--
|
||||
2.26.2
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 20 00:11:33 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Add support for experimental targets and enable the M68k backend
|
||||
- Add patch to fix testsuite after enabling the M68k backend
|
||||
+ llvm-update-extract-section-script.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 18 15:05:40 UTC 2021 - Aaron Puchert <aaronpuchert@alice-dsl.net>
|
||||
|
||||
|
10
llvm13.spec
10
llvm13.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package llvm13
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -138,6 +138,7 @@ Patch27: llvm-exegesis-link-dylib.patch
|
||||
# Fix lookup of targets in installed CMake files. (boo#1180748, https://reviews.llvm.org/D96670)
|
||||
Patch33: CMake-Look-up-target-subcomponents-in-LLVM_AVAILABLE_LIBS.patch
|
||||
Patch34: llvm-fix-building-with-GCC-12.patch
|
||||
Patch35: llvm-update-extract-section-script.patch
|
||||
BuildRequires: binutils-devel >= 2.21.90
|
||||
BuildRequires: cmake >= 3.13.4
|
||||
BuildRequires: fdupes
|
||||
@ -566,6 +567,7 @@ This package contains the development files for Polly.
|
||||
%patch27 -p2
|
||||
%patch33 -p2
|
||||
%patch34 -p2
|
||||
%patch35 -p2
|
||||
|
||||
pushd clang-%{_version}.src
|
||||
%patch2 -p1
|
||||
@ -656,21 +658,26 @@ CXXFLAGS=$flags
|
||||
|
||||
# By default build everything
|
||||
TARGETS_TO_BUILD="all"
|
||||
EXPERIMENTAL_TARGETS_TO_BUILD="M68k"
|
||||
%ifarch s390 s390x
|
||||
# No graphics cards on System z
|
||||
TARGETS_TO_BUILD="host;BPF"
|
||||
EXPERIMENTAL_TARGETS_TO_BUILD=
|
||||
%endif
|
||||
%ifarch %arm
|
||||
# TODO: Document why those.
|
||||
TARGETS_TO_BUILD="host;ARM;AMDGPU;BPF;NVPTX"
|
||||
EXPERIMENTAL_TARGETS_TO_BUILD=
|
||||
%endif
|
||||
%ifarch ppc64 ppc64le
|
||||
# TODO: Document why those.
|
||||
TARGETS_TO_BUILD="host;AMDGPU;BPF;NVPTX"
|
||||
EXPERIMENTAL_TARGETS_TO_BUILD=
|
||||
%endif
|
||||
%ifarch ppc
|
||||
# TODO: Graphics cards turned off because of relocation overflows.
|
||||
TARGETS_TO_BUILD="host;BPF"
|
||||
EXPERIMENTAL_TARGETS_TO_BUILD=
|
||||
%endif
|
||||
|
||||
mem_per_compile_job=1000000
|
||||
@ -808,6 +815,7 @@ export CLANG_TOOLS_EXTRA_DIR=${PWD}/tools/clang/tools/extra
|
||||
-DLLVM_ENABLE_PIC=ON \
|
||||
-DLLVM_BINUTILS_INCDIR=%{_includedir} \
|
||||
-DLLVM_TARGETS_TO_BUILD=${TARGETS_TO_BUILD} \
|
||||
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=${EXPERIMENTAL_TARGETS_TO_BUILD} \
|
||||
%if %{with libcxx}
|
||||
-DLIBCXX_ENABLE_SHARED=YES \
|
||||
-DLIBCXX_ENABLE_STATIC=NO \
|
||||
|
Loading…
Reference in New Issue
Block a user