3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #68550 from WilliButz/v8/fix-aarch64-build

v8: fix build on aarch64
This commit is contained in:
worldofpeace 2019-09-12 12:10:43 -04:00 committed by GitHub
commit 6b92321f82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"}"