From 41dcd52864a569d2a0305ce97ad335238a0bc17d Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 4 Oct 2018 09:57:09 +0000 Subject: [default.nix] Add install dir to OCAMLPATH before running the test-suite --- test-suite/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test-suite') diff --git a/test-suite/Makefile b/test-suite/Makefile index 5e465ab47d..d088702b44 100644 --- a/test-suite/Makefile +++ b/test-suite/Makefile @@ -250,8 +250,11 @@ $(addsuffix .log,$(wildcard bugs/closed/*.v)): %.v.log: %.v # Unit tests ####################################################################### +# COQLIBINSTALL is quoted in config/make thus we must unquote it, +# otherwise the directory name will include the quotes, see +# see for example https://stackoverflow.com/questions/10424645/how-to-convert-a-quoted-string-to-a-normal-one-in-makefile ifeq ($(LOCAL),true) - export OCAMLPATH := $(patsubst "%",%,$(COQLIBINSTALL)) + export OCAMLPATH := $(shell echo $(COQLIBINSTALL)) endif OCAMLOPT := $(OCAMLFIND) opt $(CAMLFLAGS) -- cgit v1.2.3