SHA256
8
0
forked from pool/deno

use macro bcond to select BuildRequires clang/gcc #6

Open
gcomes.obs wants to merge 1 commits from gcomes.obs/deno:main into main
2 changed files with 16 additions and 2 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Nov 18 13:12:51 UTC 2025 - Giacomo Comes <gcomes.obs@gmail.com>
- use macro bcond to select BuildRequires clang/gcc
- use BuildRequires clang19 by default
* allow to select BuildRequires gcc only for tumbleweed since
for leap build doesn't work
-------------------------------------------------------------------
Mon Sep 15 14:53:43 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>

View File

@@ -18,6 +18,12 @@
#
%bcond_without clang
%if 0%{?suse_version} > 1600
#uncomment next line to select gcc for tumbleweed
#%%bcond_with clang
%endif
%global _lto_cflags %nil
%global _v8_version 137.2.1
Name: deno
@@ -31,7 +37,7 @@ Source0: %{name}-%{version}.tar.zst
Source1: registry.tar.zst
BuildRequires: cargo-packaging
%if 0%{?suse_version} > 1600
%if %{with clang}
BuildRequires: clang19
%else
BuildRequires: gcc
@@ -116,7 +122,7 @@ export CARGO_HOME="$PWD/.cargo"
export CLANG_VERSION=$(clang --version | grep -m1 version | sed 's/.* \([0-9]\+\).*/\1/')
export V8_FROM_SOURCE=1
export CLANG_BASE_PATH=%{_prefix}
%if 0%{?suse_version} > 1600
%if %{with clang}
export CC=clang
export CXX=clang++
export CFLAGS="%{optflags} -Wno-unknown-warning-option"