deno: Disable _FORTIFY_SOURCE=3 on rusty-v8

According to Arch Linux, fortification level 3 is incompatible with some
used functionality. Irrespective of that, the v8 build sets this as
well, although on level 2 in our case.
This commit is contained in:
Mynacol
2026-05-04 09:21:28 +02:00
committed by Mynacol
parent 0058564cb5
commit 40712b38c5
+8 -3
View File
@@ -144,9 +144,14 @@ rustPlatform.buildRustPackage (finalAttrs: {
buildFeatures = [ "simdutf" ];
# rusty-v8 has its own default hardening flags, which are "extensive" for release builds as long as `use_custom_libcxx` stays true.
# Avoids many warnings about redefined macros (on build failures) and uses the upstream flag.
hardeningDisable = [ "libcxxhardeningfast" ];
hardeningDisable = [
# rusty-v8 has its own default hardening flags, which are "extensive" for release builds as long as `use_custom_libcxx` stays true.
# Avoids many warnings about redefined macros (on build failures) and uses the upstream flag.
"libcxxhardeningfast"
# from Arch Linux: this uses malloc_usable_size, which is incompatible with fortification level 3
# https://gitlab.archlinux.org/archlinux/packaging/packages/deno/-/blob/cd9bdf9e67381da413142413646bd8648807510a/PKGBUILD#L49
"fortify3"
];
checkFlags = [
# These tests probably fail due to a more recent rustc version (upstream: 1.89.0, here: 1.93.0)