SHA256
1
0
forked from javascript/deno

1 Commits

Author SHA256 Message Date
07cca9b878 Try to fix build 2025-11-14 15:23:09 +01:00

View File

@@ -31,12 +31,8 @@ Source0: %{name}-%{version}.tar.zst
Source1: registry.tar.zst
BuildRequires: cargo-packaging
%if 0%{?suse_version} > 1600
BuildRequires: clang19
%else
BuildRequires: gcc
BuildRequires: gcc-c++
%endif
BuildRequires: libstdc++6-devel-gcc14
# needed by `libz-ng-sys` after 1.36.1
# see: https://build.opensuse.org/package/show/devel:languages:javascript/deno#comment-1808174
@@ -116,15 +112,10 @@ 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
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"