]> xenbits.xensource.com Git - xen.git/commitdiff
tools/ocaml: Drop the OCAMLOPTFLAG_G invocation
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 25 Nov 2024 10:56:41 +0000 (11:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 25 Nov 2024 10:56:41 +0000 (11:56 +0100)
These days, `ocamlopt -h` asks you whether you meant --help instead, meaning
that the $(shell ) invocation here isn't going end up containing '-g'.

Make it unconditional, like it is in OCAMLCFLAGS already.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Christian Lindig <christian.lindig@cloud.com>
Reviewed-by: Edwin Török <edwin.torok@cloud.com>
master commit: 126293eae6485089471ebdfd91fe944a0274e613
master date: 2024-08-23 15:02:27 +0100

tools/ocaml/common.make

index cc126b749f563c1085f7e9d9db75699e8ed6a0d2..708d74617c8db2d5b63df9cd6ab3ed355bcb479c 100644 (file)
@@ -11,8 +11,7 @@ OCAMLFIND ?= ocamlfind
 
 CFLAGS += -fPIC -I$(shell ocamlc -where)
 
-OCAMLOPTFLAG_G := $(shell $(OCAMLOPT) -h 2>&1 | sed -n 's/^  *\(-g\) .*/\1/p')
-OCAMLOPTFLAGS = $(OCAMLOPTFLAG_G) -ccopt "$(LDFLAGS)" -dtypes $(OCAMLINCLUDE) -w F -warn-error F
+OCAMLOPTFLAGS = -g -ccopt "$(LDFLAGS)" -dtypes $(OCAMLINCLUDE) -w F -warn-error F
 OCAMLCFLAGS += -g $(OCAMLINCLUDE) -w F -warn-error F
 
 VERSION := 4.1