- Match gn build config for v8 from chromium
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/rusty_v8?expand=0&rev=85
This commit is contained in:
parent
ba1b2d0f8c
commit
111138ff07
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 11 15:33:49 UTC 2024 - Soc Virnyl Estela <obs@uncomfyhalomacro.pl>
|
||||
|
||||
- Match gn build config for v8 from chromium
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 11 06:06:23 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
|
@ -15,6 +15,7 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global __requires_exclude_from ^%{_libdir}/crates/rusty_v8/.*$
|
||||
|
||||
Name: rusty_v8
|
||||
@ -30,18 +31,18 @@ Source100: rusty_v8-rpmlintrc
|
||||
Patch0: deno-v8-arm.patch
|
||||
# Based on https://gitlab.archlinux.org/archlinux/packaging/packages/chromium/-/raw/main/compiler-rt-adjust-paths.patch
|
||||
Patch1: compiler-rt-adjust-paths.patch
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: cargo
|
||||
BuildRequires: sccache
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: clang
|
||||
BuildRequires: lld
|
||||
BuildRequires: zstd
|
||||
BuildRequires: gn
|
||||
BuildRequires: llvm
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gn
|
||||
BuildRequires: lld
|
||||
BuildRequires: llvm
|
||||
BuildRequires: ninja
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python3-base
|
||||
BuildRequires: sccache
|
||||
BuildRequires: zstd
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(gmodule-2.0)
|
||||
BuildRequires: pkgconfig(gobject-2.0)
|
||||
@ -54,7 +55,6 @@ ExclusiveArch: %{rust_tier1_arches}
|
||||
BuildRequires: gcc-c++
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
V8 build tooling for Deno. This represents all of the common
|
||||
cruft that is dragged along into the deno build from V8,
|
||||
@ -72,14 +72,14 @@ sed -i 's|lib/clang|lib64/clang|g' build/config/clang/BUILD.gn
|
||||
%build
|
||||
# Ensure that the clang version matches. This command came from Archlinux. Thanks.
|
||||
export CLANG_VERSION=$(clang --version | grep -m1 version | sed 's/.* \([0-9]\+\).*/\1/')
|
||||
# See https://github.com/denoland/rusty_v8/#build-v8-from-source
|
||||
export V8_FROM_SOURCE=1
|
||||
export CLANG_BASE_PATH=%{_prefix}
|
||||
export GN_ARGS="clang_version=${CLANG_VERSION} use_lld=true"
|
||||
export CC=clang
|
||||
export CXX=clang++
|
||||
export CFLAGS="%{optflags} -Wno-unknown-warning-option"
|
||||
export CXXFLAGS="%{optflags} -Wno-unknown-warning-option"
|
||||
# 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"
|
||||
export CFLAGS="%{optflags}"
|
||||
export CXXFLAGS="%{optflags}"
|
||||
export RUST_BACKTRACE=full
|
||||
%{cargo_build}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user