Skip to content

Commit 783d2fd

Browse files
committed
squash! fix aarch64-linux V8 build
1 parent 27b1f13 commit 783d2fd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎tools/nix/v8.nix‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ stdenv.mkDerivation (finalAttrs: {
130130
fi
131131
done
132132
''
133+
# TODO: remove that custom patch in favor of https://chromium-review.googlesource.com/c/v8/v8/+/8500805
134+
+ (lib.optionalString (with stdenv.hostPlatform; isLinux && isArm64) ''
135+
substituteInPlace deps/v8/src/base/memcopy.h --replace-fail '#define V8_BASE_MEMCOPY_H_' "$(
136+
printf '%s\n\n%s\n' '#define V8_BASE_MEMCOPY_H_' '#include <limits.h>'
137+
)"
138+
'')
133139
# We also need to mock some Python util files that are not used to configure Python.
134140
# Mocking lets us avoid rebuilding the whole derivation if there's a unrelated
135141
# change in one of those files.

0 commit comments

Comments
 (0)