From f7163af8cfe595fdb6bf966141dd13f0443fe140 Mon Sep 17 00:00:00 2001 From: Alasdair Date: Fri, 1 Dec 2023 18:38:31 +0000 Subject: [PATCH] Makefile: Set OPAMCLI to 2.0 This removes the warning about `opam config var`. Setting OPAMCLI in this way is the correct thing to do if we want to continue supporting opam 2.0. If we decide to require opam 2.1+ then all `opam var` invocations should become `opam --cli=2.1 var`, as per the opam CLI versioning spec: https://github.com/ocaml/opam/wiki/Spec-for-opam-CLI-versioning --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 9140065bd..9f284ca24 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,9 @@ else ifeq ($(ARCH),64) override ARCH := RV64 endif +# Set OPAMCLI to 2.0 to supress warnings about opam config var +export OPAMCLI := 2.0 + ifeq ($(ARCH),RV32) SAIL_XLEN := riscv_xlen32.sail else ifeq ($(ARCH),RV64)