mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
v8: Build 3.16.14 on ARM
This commit is contained in:
parent
7465bcd67a
commit
934a460fd2
@ -3,7 +3,10 @@
|
|||||||
assert readline != null;
|
assert readline != null;
|
||||||
|
|
||||||
let
|
let
|
||||||
arch = if stdenv.is64bit then "x64" else "ia32";
|
arch = if stdenv.isArm
|
||||||
|
then (if stdenv.is64bit then "arm64" else "arm")
|
||||||
|
else (if stdenv.is64bit then "x64" else "ia32");
|
||||||
|
armHardFloat = stdenv.isArm && (stdenv.platform.gcc.float or null) == "hard";
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -34,6 +37,7 @@ stdenv.mkDerivation rec {
|
|||||||
-Dconsole=readline \
|
-Dconsole=readline \
|
||||||
-Dcomponent=shared_library \
|
-Dcomponent=shared_library \
|
||||||
-Dv8_target_arch=${arch} \
|
-Dv8_target_arch=${arch} \
|
||||||
|
${lib.optionalString armHardFloat "-Dv8_use_arm_eabi_hardfloat=true"} \
|
||||||
--depth=. -Ibuild/standalone.gypi \
|
--depth=. -Ibuild/standalone.gypi \
|
||||||
build/all.gyp
|
build/all.gyp
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user