forked from facebook/hhvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathocaml_deps_data.sh
61 lines (56 loc) · 1.27 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
56
57
58
59
60
61
#!/bin/bash
export OCAML_VERSION="5.2.0+options"
export HACK_OPAM_DEPS=(
base.v0.16.3
base64.3.5.0
camlp-streams.5.0.1
cmdliner.1.1.1
core_kernel.v0.16.0
core_unix.v0.16.0
dtoa.0.3.2
dune.3.6.0
fileutils.0.6.4
fmt.0.9.0
iomux.0.3
landmarks-ppx.1.4
lru.0.3.1
lwt.5.7.0
lwt_log.1.1.2
lwt_ppx.2.1.0
memtrace.0.2.3
merlin.5.0-502
mtime.1.4.0
ocp-indent.1.8.1
ounit2.2.2.6
pcre.7.5.0
ppx_deriving.5.2.1
ppx_gen_rec.2.0.0
ppx_sexp_conv.v0.16.0
ppx_yojson_conv.v0.16.0
sedlex.3.0
sexplib.v0.16.0
sqlite3.5.1.0
uchar.0.0.2
uutf.1.0.3
visitors.20210608
wtf8.1.0.2
yojson.2.0.2
ocamlbuild.0.14.3
ocaml-option-flambda
ocaml-option-no-compression
)
# 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