deno: remove obsolete LTO fix
Reverts https://github.com/NixOS/nixpkgs/pull/416177/commits/abc9b18038ae082c05ad2c0cbab1506fa2ec4d87, nixpkgs LLVM contains the fix for the original issue
This commit is contained in:
@@ -57,16 +57,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
postPatch = ''
|
||||
# Use patched nixpkgs libffi in order to fix https://github.com/libffi/libffi/pull/857
|
||||
tomlq -ti '.workspace.dependencies.libffi = { "version": .workspace.dependencies.libffi, "features": ["system"] }' Cargo.toml
|
||||
''
|
||||
+
|
||||
lib.optionalString
|
||||
(stdenv.hostPlatform.isLinux || (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64))
|
||||
''
|
||||
# LTO crashes with the latest Rust + LLVM combination.
|
||||
# https://github.com/rust-lang/rust/issues/141737
|
||||
# TODO: remove this once LLVM is upgraded to 20.1.7
|
||||
tomlq -ti '.profile.release.lto = false' Cargo.toml
|
||||
'';
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
libffi
|
||||
|
||||
Reference in New Issue
Block a user