SHA256
1
0
forked from pool/ldc

Accepting request 1038053 from devel:languages:D

OBS-URL: https://build.opensuse.org/request/show/1038053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ldc?expand=0&rev=20
This commit is contained in:
Dominique Leuenberger 2022-11-25 12:13:14 +00:00 committed by Git OBS Bridge
commit d58adcf31f
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Nov 25 07:33:17 UTC 2022 - Max Lin <mlin@suse.com>
- Force to use llvm14 in Leap 15.5 since the default llvm version is
now llvm15
-------------------------------------------------------------------
Mon Nov 21 15:02:29 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -33,7 +33,7 @@
%bcond_with ldc_tests
# Dynamic compiling is not supported with LLVM >= 12
%if 0%{?suse_version} > 1550
%if 0%{?suse_version} > 1550 || ( 0%{?is_opensuse} && 0%{?sle_version} > 150400 )
# We force llvm14 on TW
%global jit_support 0
%else
@ -64,7 +64,7 @@ BuildRequires: help2man
BuildRequires: libconfig++-devel
BuildRequires: libcurl-devel
BuildRequires: libstdc++-devel
%if 0%{?suse_version} > 1550
%if 0%{?suse_version} > 1550 || ( 0%{?is_opensuse} && 0%{?sle_version} > 150400 )
# Cannot build with llvm15, so stick with llvm14 for now
BuildRequires: clang14
BuildRequires: llvm14-devel
@ -183,7 +183,7 @@ sed -i "s# - -o-# \"$PWD/feVer.d\" -o-#" cmake/Modules/FindDCompiler.cmake
touch no-suse-rules
%cmake \
-DCMAKE_USER_MAKE_RULES_OVERRIDE=./no-suse-rules \
%if 0%{?suse_version} > 1550
%if 0%{?suse_version} > 1550 || ( 0%{?is_opensuse} && 0%{?sle_version} > 150400 )
-DCMAKE_C_COMPILER="%{_bindir}/clang-14" \
-DCMAKE_CXX_COMPILER="%{_bindir}/clang++-14" \
%else
@ -208,7 +208,7 @@ cd ..
touch no-suse-rules
%cmake \
-DCMAKE_USER_MAKE_RULES_OVERRIDE=./no-suse-rules \
%if 0%{?suse_version} > 1550
%if 0%{?suse_version} > 1550 || ( 0%{?is_opensuse} && 0%{?sle_version} > 150400 )
-DCMAKE_C_COMPILER="%{_bindir}/clang-14" \
-DCMAKE_CXX_COMPILER="%{_bindir}/clang++-14" \
%else