Build otherlibs with debug info in C stubs

master
Stephen Dolan 2020-07-27 16:13:28 +01:00
parent ba2b98608a
commit a741f25803
3 changed files with 11 additions and 0 deletions

View File

@ -292,6 +292,9 @@ Working version
to avoid C dependency recomputation.
(Gabriel Scherer, review by David Allsopp)
- #9804: Build C stubs of libraries in otherlibs/ with debug info.
(Stephen Dolan, review by Sébastien Hinderer and David Allsopp)
### Bug fixes:
- #7902, #9556: Type-checker infers recursive type, even though -rectypes is

View File

@ -24,6 +24,10 @@ CAMLRUN ?= $(ROOTDIR)/boot/ocamlrun
CAMLC := $(BEST_OCAMLC) -nostdlib -I $(ROOTDIR)/stdlib
CAMLOPT := $(BEST_OCAMLOPT) -nostdlib -I $(ROOTDIR)/stdlib
ifneq "$(CCOMPTYPE)" "msvc"
OC_CFLAGS += -g
endif
OC_CFLAGS += $(SHAREDLIB_CFLAGS) $(EXTRACFLAGS)
OC_CPPFLAGS += -I$(ROOTDIR)/runtime $(EXTRACPPFLAGS)

View File

@ -18,6 +18,10 @@ ROOTDIR=../..
include $(ROOTDIR)/Makefile.common
include $(ROOTDIR)/Makefile.best_binaries
ifneq "$(CCOMPTYPE)" "msvc"
OC_CFLAGS += -g
endif
OC_CFLAGS += $(SHAREDLIB_CFLAGS)
OC_CPPFLAGS += -I$(ROOTDIR)/runtime