File tree Expand file tree Collapse file tree 2 files changed +20
-9
lines changed Expand file tree Collapse file tree 2 files changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ export HACK_OPAM_DEPS=(
10
10
core_kernel.v0.16.0
11
11
core_unix.v0.16.0
12
12
dtoa.0.3.2
13
- dune.3.6.0
13
+ dune.3.20.1
14
14
fileutils.0.6.4
15
15
fmt.0.9.0
16
16
iomux.0.3
17
- landmarks-ppx.1.4
17
+ landmarks-ppx.1.5
18
18
lru.0.3.1
19
19
lwt.5.7.0
20
20
lwt_log.1.1.2
@@ -49,12 +49,13 @@ export OCAML_BASE_NAME=ocaml-variants
49
49
export OCAML_COMPILER_NAME=" ${OCAML_BASE_NAME} .${HACK_OCAML_VERSION} "
50
50
51
51
UNAME=$( uname -s)
52
- if [ " $UNAME " != " Linux" ]; then
52
+ ARCH=$( uname -m)
53
+ if [ " $UNAME " != " Linux" ] || [ " $ARCH " == " aarch64" ]; then
53
54
# Some variants are not supported on other platforms, so we use the base
54
55
# version instead.
55
- # +fp is known not to work on Macs, but other combinations have not been
56
+ # +fp is known not to work on Macs or on arm64 , but other combinations have not been
56
57
# tested.
57
- echo ' Non linux platform detected , skipping +fp'
58
+ echo ' Platform is not Linux or is arm64 , skipping +fp'
58
59
else
59
60
HACK_OPAM_DEPS+=(ocaml-option-fp)
60
61
export HACK_OPAM_DEPS
Original file line number Diff line number Diff line change 10
10
# This also avoids the need to depend on gpg in the installation.
11
11
include (HPHPFunctions)
12
12
13
+ if (IS_X64)
14
+ set (OPAM_ARCH "x86_64" )
15
+ set (OPAM_LINUX_HASH "03c6a85f13a452749fdb2271731f3624a3993498ff2b304123231a8f2b26ccf1182d12119466e9a85f4de370fca51bd61d0eefe6280d3ca087cf4620fdc59a22" )
16
+ set (OPAM_DARWIN_HASH "1c9acee545c851dd3701229e3a6aa7b5650620e37e01400d797a4b1fbeeb614adc459411283684e223a72fda8b14ba6c6e5482661485f888819f6a2a02e4d279" )
17
+ elseif (IS_AARCH64)
18
+ set (OPAM_ARCH "arm64" )
19
+ set (OPAM_LINUX_HASH "216185106deb81db0e9cb329dd7f01d097173e1e7a055a1af8525cdb4dde6d443e4bf4ef8377f1cbd4c9fecdc7ea03e6f294dad30b10a0e83959476018e24972" )
20
+ set (OPAM_DARWIN_HASH "c8a46b2d554e4b2a68d5004ad4cee24425c75a6957c40af49d21e05875925e59d29ef3c9f0d7703f9c209b3f50107959fa853b32143f9e7deb7b4cc54006d668" )
21
+ endif ()
22
+
13
23
SET_HHVM_THIRD_PARTY_SOURCE_ARGS(
14
24
OPAM_DOWNLOAD_ARGS
15
25
Linux_URL
16
- "https://github.com/ocaml/opam/releases/download/2.1.0/opam-2.1.0-x86_64 -linux"
26
+ "https://github.com/ocaml/opam/releases/download/2.1.0/opam-2.1.0-${OPAM_ARCH} -linux"
17
27
Darwin_URL
18
- "https://github.com/ocaml/opam/releases/download/2.1.0/opam-2.1.0-x86_64 -macos"
28
+ "https://github.com/ocaml/opam/releases/download/2.1.0/opam-2.1.0-${OPAM_ARCH} -macos"
19
29
Linux_HASH
20
- "SHA512=03c6a85f13a452749fdb2271731f3624a3993498ff2b304123231a8f2b26ccf1182d12119466e9a85f4de370fca51bd61d0eefe6280d3ca087cf4620fdc59a22 "
30
+ "SHA512=${OPAM_LINUX_HASH} "
21
31
Darwin_HASH
22
- "SHA512=1c9acee545c851dd3701229e3a6aa7b5650620e37e01400d797a4b1fbeeb614adc459411283684e223a72fda8b14ba6c6e5482661485f888819f6a2a02e4d279 "
32
+ "SHA512=${OPAM_DARWIN_HASH} "
23
33
)
24
34
25
35
include (ExternalProject)
You can’t perform that action at this time.
0 commit comments