Avindra Goolcharan 2023-02-24 05:32:27 +00:00 committed by Git OBS Bridge
parent 1053269db4
commit e2a3635a57
3 changed files with 23 additions and 3 deletions

18
deno-disable-lto.patch Normal file
View File

@ -0,0 +1,18 @@
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -146,7 +146,6 @@ winapi = "=0.3.9"
[profile.release]
codegen-units = 1
incremental = true
-lto = true
opt-level = 'z' # Optimize for size
# Build release with debug symbols: cargo build --profile=release-with-debug
@@ -158,7 +157,6 @@ debug = true
[profile.bench]
codegen-units = 1
incremental = true
-lto = true
opt-level = 'z' # Optimize for size
# Key generation is too slow on `debug`

View File

@ -89,7 +89,7 @@ Fri Feb 24 00:21:54 UTC 2023 - Avindra Goolcharan <avindra@opensuse.org>
* fix(upgrade): ensure temp dir cleanup on failure (#17535)
* fix: ensure "fs" -> "node:fs" error/quick fix works when user has import map (#17566)
* perf(ops): Remove unnecessary fast call fallback options usage (#17585)
- Remove deno-disbale-lto.patch (needs rebase/TBD)
- Rebase deno-disbale-lto.patch (renamed to deno-disable-lto.patch)
-------------------------------------------------------------------
Sat Jan 28 23:33:53 UTC 2023 - Avindra Goolcharan <avindra@opensuse.org>

View File

@ -29,8 +29,10 @@ Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
Source2: cargo_config
Source99: revendor_source.sh
# PATCH-FIX-OPENSUSE - Disable LTO
# Patch1: deno-disbale-lto.patch
# PATCH-FIX-OPENSUSE - Disable LTO (to reduce req memory)
%ifarch %{arm} aarch64
Patch1: deno-disable-lto.patch
%endif
# gcc-c++ needed to build SPIRV-Cross
BuildRequires: clang
BuildRequires: cargo-packaging