-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Drop deferred patches as they are no longer needed (the -O3 patch for V8 patch may be useful but removing for sake of ease of maintenance). - Drop lld/bfd hack in favour of a unified USECLANG switch. - Clean up defines, prepare.
- Loading branch information
1 parent
50b461d
commit d2a13ad
Showing
5 changed files
with
15 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
PKGNAME=deno | ||
PKGSEC=devel | ||
PKGDES="A secure JavaScript and TypeScript runtime" | ||
PKGDEP="glibc gcc-runtime" | ||
PKGSUG="mesa" | ||
BUILDDEP="python-3 rustc gn llvm ninja" | ||
PKGDES="JavaScript and TypeScript runtime" | ||
|
||
USECLANG=1 | ||
NOLTO=1 | ||
NOCARGOAUDIT=1 | ||
FAIL_ARCH="!(amd64|arm64|ppc64el|riscv64)" | ||
# FIXME: missing ld.lld support | ||
# FIXME: Broken ld.lld support | ||
USECLANG__LOONGSON3=0 | ||
USECLANG__LOONGARCH64=0 | ||
USECLANG__MIPS64R6EL=0 | ||
ABSPLITDBG=0 |
36 changes: 0 additions & 36 deletions
36
lang-js/deno/autobuild/patches/0001-fix-v8-build.patch.deferred
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
lang-js/deno/autobuild/patches/0001-use-O3-optimization.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,14 @@ | ||
abinfo "Setting up build environment ..." | ||
# Note: Build V8 from source as the upstream does not provide enough | ||
# binaries for the architectures we support. | ||
export V8_FROM_SOURCE=1 | ||
export CLANG_BASE_PATH='/usr/' | ||
export GN_ARGS="no_inline_line_tables=false is_clang=false v8_enable_pointer_compression=true treat_warnings_as_errors=false \ | ||
custom_toolchain=\"//build/toolchain/linux/unbundle:default\" host_toolchain=\"//build/toolchain/linux/unbundle:default\" \ | ||
v8_enable_pointer_compression=true" | ||
export GN_ARGS=" \ | ||
no_inline_line_tables=false \ | ||
is_clang=false \ | ||
v8_enable_pointer_compression=true \ | ||
treat_warnings_as_errors=false \ | ||
custom_toolchain=\"//build/toolchain/linux/unbundle:default\" \ | ||
host_toolchain=\"//build/toolchain/linux/unbundle:default\" \ | ||
v8_enable_pointer_compression=true" | ||
export GN="/usr/bin/gn" | ||
export AR=ar | ||
export NM=nm | ||
export CFLAGS="$CFLAGS -fPIC" | ||
export CXXFLAGS="$CXXFLAGS -fPIC" | ||
|
||
# ld.gold is very likely to crash on amd64/aarch64/ppc64, and lld is unusable on loongson3 | ||
if [[ "${CROSS:-$ARCH}" != 'loongson3' ]]; then | ||
export AR=llvm-ar | ||
export NM=llvm-nm | ||
export LDFLAGS="${LDFLAGS} -fuse-ld=lld" | ||
export RUSTFLAGS="${RUSTFLAGS} -Clink-arg=-fuse-ld=lld -Clink-arg=-Wl,-build-id=sha1 -Clinker=clang" | ||
export GN_ARGS="$GN_ARGS use_lld=true" | ||
else | ||
export DISABLE_CLANG=1 | ||
export GN_ARGS="$GN_ARGS use_lld=false use_gold=false" | ||
fi | ||
# workaround v8 issues | ||
abinfo "Fetching dependency sources ..." | ||
cargo update simd-json | ||
cargo fetch --locked | ||
PATCHES_DIR="$SRCDIR/autobuild/patches" | ||
pushd /root/.cargo/registry/src/index.crates.io-*/v8-0.92.0/ | ||
ab_apply_patches "${PATCHES_DIR}"/*.deferred | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
VER=1.44.1 | ||
VER=2.2.2 | ||
SRCS="tbl::https://github.com/denoland/deno/releases/download/v$VER/deno_src.tar.gz" | ||
CHKSUMS="sha256::9fb530b85dc795310ee9e0c4edd2dbfa722d2489a3b7bebc9a4078c2d2f67594" | ||
CHKSUMS="sha256::0c802c7ed0035739d2c0b836de24a0f4215a1a864226573b12412e6516f5d198" | ||
SUBDIR=deno | ||
CHKUPDATE="anitya::id=133196" |