···77assert readline != null;
8899let
1010- arch = if stdenv.isArm
1111- then if stdenv.is64bit
1212- then"arm64"
1313- else "arm"
1414- else if stdenv.is64bit
1515- then"x64"
1616- else "ia32";
1010+ arch = if stdenv.isx86_64 then "x64"
1111+ else if stdenv.isi686 then "ia32"
1212+ else if stdenv.isAarch64 then "arm64"
1313+ else if stdenv.isArm then "arm"
1414+ else throw "Unknown architecture for v8";
1715 git_url = "https://chromium.googlesource.com";
1816 clangFlag = if stdenv.isDarwin then "1" else "0";
1917 sharedFlag = if static then "static_library" else "shared_library";
···171169 ];
172170173171 enableParallelBuilding = true;
172172+173173+ dontUpdateAutotoolsGnuConfigScripts = if stdenv.isAarch64 then true else null;
174174175175 # the `libv8_libplatform` target is _only_ built as a static library,
176176 # and is expected to be statically linked in when needed.