diff --git a/deno-disable-lto.patch b/deno-disable-lto.patch new file mode 100644 index 0000000..84946b7 --- /dev/null +++ b/deno-disable-lto.patch @@ -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` diff --git a/deno.changes b/deno.changes index f586ecc..cda0171 100644 --- a/deno.changes +++ b/deno.changes @@ -89,7 +89,7 @@ Fri Feb 24 00:21:54 UTC 2023 - Avindra Goolcharan * 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 diff --git a/deno.spec b/deno.spec index d9cf27d..c3f0463 100644 --- a/deno.spec +++ b/deno.spec @@ -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