Add a check script to check for the existence of an ocaml native compiler
PATCH 1/1 Add a check script to check for the existence of an ocaml native compiler
The script doesn't check anything if the $OS is not linux, and just print a warning if the compiler is missing.
--- tools/check/check_ocaml | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) create mode 100755 tools/check/check_ocaml
tools/check/check_ocaml new file +13 -0
@@ -0,0 +1,13 @@ +#!/bin/sh +# CHECK-BUILD + +. ./funcs.sh + +case $OS in +Linux) + has ocamlopt >/dev/null || warning "missing ocaml native compiler" + ;; +*) + + ;; +esac
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Vincent Hanquez writes ("[Xen-devel] [PATCH] Add a check script to check for the existence of an ocaml native compiler"):
Quoted 2 lines
The script doesn't check anything if the $OS is not linux, and just print a warning if the compiler is missing.
I don't understand the rationale behind only warning about missing ocaml compilers on Linux.
Either there is nothing wrong with not having ocaml and using all the C tools (specifically, C xenstore), in which case it arguably shouldn't produce a warning; or the future is supposedly ocaml and then we should warn everywhere.
Of course the latter situation would imply that ocaml can in practice be found on non-Linux dom0's without too much pain. Is that true ?
Ian.
Quoted 8 lines · Ian Jackson
Vincent Hanquez writes ("[Xen-devel] [PATCH] Add a check script to check for the existence of an ocaml native compiler"):
Quoted 3 lines
The script doesn't check anything if the $OS is not linux, and just print a warning if the compiler is missing.
I don't understand the rationale behind only warning about missing ocaml compilers on Linux.
Unless oxenstored get some portability efforts, warning on system that can't use it anyway is just annoying for no gain. On system that can use it (just linux), we want to push people using it.
Signature · 1 line
Vincent