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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user