Skip to content

Commit 668d07d

Browse files
authored
Merge pull request #323 from djs55/system-compiler
Allow the system compiler to be used
2 parents 1ac5951 + 36215fa commit 668d07d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
git: "https://github.com/samoht/mirage-tcpip.git#vpnkit"
1+
git: "https://github.com/djs55/mirage-tcpip.git#vpnkit"

scripts/common.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ export OPAMROOT
1313
export OPAMYES=1
1414
export OPAMCOLORS=1
1515

16-
opam init -v -n --comp="${OPAM_COMP}" --switch="${OPAM_COMP}" local "${OPAM_REPO}"
16+
# if a compiler is specified, use it; otherwise use the system compiler
17+
if [ -n "${OPAM_COMP}" ]; then
18+
OPAM_COMP_ARG="--comp=${OPAM_COMP}"
19+
OPAM_SWITCH_ARG="--switch=${OPAM_COMP}"
20+
fi
21+
22+
opam init -v -n "${OPAM_COMP_ARG}" "${OPAM_SWITCH_ARG}" local "${OPAM_REPO}"
1723
echo opam configuration is:
1824
opam config env
1925
eval $(opam config env)

0 commit comments

Comments
 (0)