v8: fix build on aarch64

This commit is contained in:
WilliButz 2019-09-12 14:13:26 +02:00
parent dad77d59cb
commit 0e879bfe8d
No known key found for this signature in database
GPG key ID: 92582A10F1179CB2

View file

@ -73,6 +73,11 @@ stdenv.mkDerivation rec {
chmod u+w -R .
'';
postPatch = stdenv.lib.optionalString stdenv.isAarch64 ''
substituteInPlace build/toolchain/linux/BUILD.gn \
--replace 'toolprefix = "aarch64-linux-gnu-"' 'toolprefix = ""'
'';
gnFlags = [
"use_custom_libcxx=false"
"is_clang=${if stdenv.cc.isClang then "true" else "false"}"