The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Keep the stripped bytecode binaries

No need to remove things during install when it will be done later by a
package manager. Also prepares for the possibility of letting something
else install the binary subsequently.

+13 -12
+1
.gitignore
··· 26 26 *.cmx[as] 27 27 *.cmti 28 28 *.annot 29 + *.stripped 29 30 *.exe 30 31 *.exe.manifest 31 32 .DS_Store
+7 -6
Makefile
··· 988 988 endif 989 989 990 990 partialclean:: 991 - rm -f ocamlc ocamlc.exe ocamlc.opt ocamlc.opt.exe 991 + rm -f ocamlc ocamlc.exe ocamlc.opt ocamlc.opt.exe ocamlc*.stripped 992 992 993 993 # The native-code compiler 994 994 ··· 999 999 ocamlopt_BYTECODE_LINKFLAGS = -g 1000 1000 1001 1001 partialclean:: 1002 - rm -f ocamlopt ocamlopt.exe ocamlopt.opt ocamlopt.opt.exe 1002 + rm -f ocamlopt ocamlopt.exe ocamlopt.opt ocamlopt.opt.exe ocamlopt*.stripped 1003 1003 1004 1004 # The toplevel 1005 1005 ··· 2832 2832 "$(INSTALL_INCDIR)" 2833 2833 $(INSTALL_PROG) ocaml$(EXE) "$(INSTALL_BINDIR)" 2834 2834 ifeq "$(INSTALL_BYTECODE_PROGRAMS)" "true" 2835 - $(call INSTALL_STRIPPED_BYTE_PROG,\ 2836 - ocamlc$(EXE),"$(INSTALL_BINDIR)/ocamlc.byte$(EXE)") 2835 + $(call STRIP_BYTE_PROG, ocamlc$(EXE)) 2836 + $(INSTALL_PROG) ocamlc$(EXE).stripped "$(INSTALL_BINDIR)/ocamlc.byte$(EXE)" 2837 2837 endif 2838 2838 $(MAKE) -C stdlib install 2839 2839 ··· 2974 2974 2975 2975 installopt:: 2976 2976 ifeq "$(INSTALL_BYTECODE_PROGRAMS)" "true" 2977 - $(call INSTALL_STRIPPED_BYTE_PROG,\ 2978 - ocamlopt$(EXE),"$(INSTALL_BINDIR)/ocamlopt.byte$(EXE)") 2977 + $(call STRIP_BYTE_PROG, ocamlopt$(EXE)) 2978 + $(INSTALL_PROG) \ 2979 + ocamlopt$(EXE).stripped "$(INSTALL_BINDIR)/ocamlopt.byte$(EXE)" 2979 2980 endif 2980 2981 $(MAKE) -C stdlib installopt 2981 2982 $(INSTALL_DATA) \
+5 -6
Makefile.common
··· 510 510 $(eval $(call _OCAML_NATIVE_LIBRARY,$(1))) 511 511 endef # OCAML_LIBRARY 512 512 513 - # Installing a bytecode executable, with debug information removed 514 - define INSTALL_STRIPPED_BYTE_PROG 515 - $(OCAMLRUN) $(ROOTDIR)/tools/stripdebug$(EXE) $(1) $(1).tmp \ 516 - && $(INSTALL_PROG) $(1).tmp $(2) \ 517 - && rm $(1).tmp 518 - endef # INSTALL_STRIPPED_BYTE_PROG 513 + # Strip debug information from a bytecode executable 514 + define STRIP_BYTE_PROG 515 + $(OCAMLRUN) $(ROOTDIR)/tools/stripdebug$(EXE) \ 516 + $(strip $(1)) $(strip $(1)).stripped 517 + endef # STRIP_BYTE_PROG 519 518 520 519 # ocamlc has several mechanisms for linking a bytecode image to the runtime 521 520 # which executes it. The exact mechanism depends on the platform and the precise