forked from facebook/hhvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ocaml_deps_data.sh
55 lines (50 loc) · 1.13 KB
/
ocaml_deps_data.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
export OCAML_VERSION="4.14.0+options"
export HACK_OPAM_DEPS=(
base.v0.14.2
base64.3.5.0
camlp4.4.14+1
cmdliner.1.1.1
core_kernel.v0.14.2
dtoa.0.3.2
dune.2.9.3
fileutils.0.6.3
fmt.0.8.9
landmarks-ppx.1.4
lru.0.3.0
lwt.5.4.2
lwt_log.1.1.1
lwt_ppx.2.0.2
memtrace.0.2.1.2
merlin.4.5-414
mtime.1.3.0
ocp-indent.1.8.1
ounit2.2.2.4
pcre.7.5.0
ppx_deriving.5.2.1
ppx_gen_rec.2.0.0
sedlex.2.4
sexplib.v0.14.0
sqlite3.5.1.0
uchar.0.0.2
uutf.1.0.2
visitors.20210608
wtf8.1.0.2
yojson.1.7.0
ocaml-option-flambda
)
# The rest of the file exports variables based on the above configuration.
export HACK_OCAML_VERSION="${OCAML_VERSION}"
export OCAML_BASE_NAME=ocaml-variants
export OCAML_COMPILER_NAME="${OCAML_BASE_NAME}.${HACK_OCAML_VERSION}"
UNAME=$(uname -s)
if [ "$UNAME" != "Linux" ]; then
# Some variants are not supported on other platforms, so we use the base
# version instead.
# +fp is known not to work on Macs, but other combinations have not been
# tested.
echo 'Non linux platform detected, skipping +fp'
else
HACK_OPAM_DEPS+=(ocaml-option-fp)
export HACK_OPAM_DEPS
fi