diff options
author | Enrico Tassi <Enrico.Tassi@inria.fr> | 2017-09-01 10:00:07 +0200 |
---|---|---|
committer | Enrico Tassi <Enrico.Tassi@inria.fr> | 2017-09-04 17:36:10 +0200 |
commit | c2c1f7e74d13bf614a8704de1437d4c789b2c2c9 (patch) | |
tree | 8a4bbb47c163f5ae4ec9892ac2a904cc8c23a52f /test-suite/coq-makefile | |
parent | d752838ae24dd431f9f2f8de09b5635139ecf3b5 (diff) |
fix test-suite/coq-makefile/findlib-package on windows
Diffstat (limited to 'test-suite/coq-makefile')
-rw-r--r-- | test-suite/coq-makefile/findlib-package/findlib/foo/Makefile | 4 | ||||
-rwxr-xr-x | test-suite/coq-makefile/findlib-package/run.sh | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/test-suite/coq-makefile/findlib-package/findlib/foo/Makefile b/test-suite/coq-makefile/findlib-package/findlib/foo/Makefile index 31cf11665..1615bfd06 100644 --- a/test-suite/coq-makefile/findlib-package/findlib/foo/Makefile +++ b/test-suite/coq-makefile/findlib-package/findlib/foo/Makefile @@ -1,7 +1,7 @@ -include ../../Makefile.conf -CO=$(COQMF_OCAMLFIND) opt -CB=$(COQMF_OCAMLFIND) ocamlc +CO="$(COQMF_OCAMLFIND)" opt +CB="$(COQMF_OCAMLFIND)" ocamlc all: $(CO) -c foolib.ml diff --git a/test-suite/coq-makefile/findlib-package/run.sh b/test-suite/coq-makefile/findlib-package/run.sh index a0d8a7fea..5b24df639 100755 --- a/test-suite/coq-makefile/findlib-package/run.sh +++ b/test-suite/coq-makefile/findlib-package/run.sh @@ -4,6 +4,11 @@ echo "let () = Foolib.foo ();;" >> src/test_aux.ml export OCAMLPATH=$OCAMLPATH:$PWD/findlib +if which cygpath 2>/dev/null; then + # the only way I found to pass OCAMLPATH on win is to have it contain + # only one entry + export OCAMLPATH=`cygpath -w $PWD/findlib` +fi make -C findlib/foo clean coq_makefile -f _CoqProject -o Makefile cat Makefile.conf |