forked from pool/deno
use macro bcond to select BuildRequires clang/gcc #6
@@ -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>
|
Mon Sep 15 14:53:43 UTC 2025 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||||
|
|
||||||
|
|||||||
10
deno.spec
10
deno.spec
@@ -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 _lto_cflags %nil
|
||||||
%global _v8_version 137.2.1
|
%global _v8_version 137.2.1
|
||||||
Name: deno
|
Name: deno
|
||||||
@@ -31,7 +37,7 @@ Source0: %{name}-%{version}.tar.zst
|
|||||||
Source1: registry.tar.zst
|
Source1: registry.tar.zst
|
||||||
BuildRequires: cargo-packaging
|
BuildRequires: cargo-packaging
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1600
|
%if %{with clang}
|
||||||
BuildRequires: clang19
|
BuildRequires: clang19
|
||||||
%else
|
%else
|
||||||
BuildRequires: gcc
|
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 CLANG_VERSION=$(clang --version | grep -m1 version | sed 's/.* \([0-9]\+\).*/\1/')
|
||||||
export V8_FROM_SOURCE=1
|
export V8_FROM_SOURCE=1
|
||||||
export CLANG_BASE_PATH=%{_prefix}
|
export CLANG_BASE_PATH=%{_prefix}
|
||||||
%if 0%{?suse_version} > 1600
|
%if %{with clang}
|
||||||
export CC=clang
|
export CC=clang
|
||||||
export CXX=clang++
|
export CXX=clang++
|
||||||
export CFLAGS="%{optflags} -Wno-unknown-warning-option"
|
export CFLAGS="%{optflags} -Wno-unknown-warning-option"
|
||||||
|
|||||||
Reference in New Issue
Block a user