[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging] tools/ocaml: silence ocaml_deprecated_auto_include alert



commit c3cf7c41214ac180902ca7dc826047774d3c5fb1
Author:     Guillaume Thouvenin <guillaume.thouvenin@xxxxxxxxxx>
AuthorDate: Tue Jun 9 09:36:35 2026 +0200
Commit:     Roger Pau Monne <roger.pau@xxxxxxxxxx>
CommitDate: Tue Jun 9 12:14:43 2026 +0200

    tools/ocaml: silence ocaml_deprecated_auto_include alert
    
    Ocaml's lib directory layout changed in 5.0: the unix and dynlink
    libraries have been moved out of the standard library directory into
    subdirectories. The compiler still locates them automatically but emits
    an ocaml_deprecated_auto_include alert when doing so.
    
    This patch sets the paths explicitly with -I +unix and -I +dynlink to
    silence the alert.
    
    Signed-off-by: Guillaume Thouvenin <guillaume.thouvenin@xxxxxxxxxx>
    Reviewed-by: Andrii Sultanov <andriy.sultanov@xxxxxxxxxx>
    Tested-by: Andrii Sultanov <andriy.sultanov@xxxxxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
    Release-Acked-by: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
---
 tools/ocaml/common.make | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/ocaml/common.make b/tools/ocaml/common.make
index c7eefceeb4..0e6714e25a 100644
--- a/tools/ocaml/common.make
+++ b/tools/ocaml/common.make
@@ -11,6 +11,7 @@ OCAMLFIND ?= ocamlfind
 
 CFLAGS += -fPIC -I$(shell ocamlc -where)
 
+OCAMLINCLUDE += -I +unix -I +dynlink
 OCAMLOPTFLAGS = -g -ccopt "$(LDFLAGS)" -dtypes $(OCAMLINCLUDE) -w F 
-warn-error F
 OCAMLCFLAGS += -g $(OCAMLINCLUDE) -w F -warn-error F
 
--
generated by git-patchbot for /home/xen/git/xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.