forked from javascript/deno
Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 54ce3fda2f |
@@ -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>
|
||||
|
||||
|
||||
17
deno.spec
17
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 _v8_version 137.2.1
|
||||
Name: deno
|
||||
@@ -31,8 +37,12 @@ Source0: %{name}-%{version}.tar.zst
|
||||
Source1: registry.tar.zst
|
||||
BuildRequires: cargo-packaging
|
||||
|
||||
%if %{with clang}
|
||||
BuildRequires: clang19
|
||||
BuildRequires: libstdc++6-devel-gcc14
|
||||
%else
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
%endif
|
||||
|
||||
# needed by `libz-ng-sys` after 1.36.1
|
||||
# see: https://build.opensuse.org/package/show/devel:languages:javascript/deno#comment-1808174
|
||||
@@ -112,10 +122,15 @@ 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 %{with clang}
|
||||
export CC=clang
|
||||
export CXX=clang++
|
||||
export CFLAGS="%{optflags} -Wno-unknown-warning-option"
|
||||
export CXXFLAGS="%{optflags} -Wno-unknown-warning-option"
|
||||
%else
|
||||
export CFLAGS="%{optflags}"
|
||||
export CXXFLAGS="%{optflags}"
|
||||
%endif
|
||||
|
||||
# https://www.chromium.org/developers/gn-build-configuration
|
||||
export GN_ARGS="clang_version=${CLANG_VERSION} use_lld=true enable_nacl = false blink_symbol_level = 0 v8_symbol_level = 0"
|
||||
|
||||
Reference in New Issue
Block a user